Can you tell me how to write docker-compose because I don't know the explanation here ↓?
Described as below, but
Mount path or named volume optionally on host machine (host: container)
Path specification and access mode (host: container: rw) can be specified.
Version 2 files use the top level volumes key to use named volumes
Must be specified.
For version 1, if the volume doesn't exist, Docker Engine will create it automatically.
Connect host and container paths by connecting them with a colon in the format of "host: container"
I understood that it was, but there was a way of writing without a colon as shown below.
image: mongo: 3.4.9
command: mongod --storageEngine wiredTiger
image: busybox: latest
In this case, "/ data/db" is like the container side (because it is not on the host side), but
What are the settings?
Answer # 1
Create a directory in/var/lib/docker on the host when you start the container.
Mount it as a Data Volume on/data/db in the container.
Since it is isolated in/var/lib/docker, it does not affect the host.
Deleting the container will logically delete the Data Volume.
- i ran the following command, but "docker-compose run bundle install"
- c # - (wpf) how to write validationerrortemplate in code
- rail + docker-compose localhost is not accessible
- emacs - how to write "c-m- ^" in leafel's: bind
- when docker-compose run web rails new, error: service 'webpacker' failed to build: copy appears
- [docker, docker-compose, nginx, puma, rails, mysql] http communication redirects to https after signing up using devise
- $docker-compose error
- How to write SVG icon components in Vue
- if you check with docker-compose ps, the status does not rise with exit 255
- how to handle docker-compose and dockerfile when you want to create a container that contains the application
- python 3x - i don't know how to write if statements
- How to write js code (wxs) directly in wxml
- Detailed installation of docker and docker-compose instances
- How to write an rmi in java
- How to write a lock in java synchronization
- ruby - how to write rails raw sql
- ruby on rails - how to write a rails test on the top page
- i want to write a command to restart ubuntu in docker in a dockerfile
- algorithm - how to write a flowchart
- docker - npm err! code elifecycle solution
- mounted sql file is not executed when docker is started for the first time
- postgresql - exit1 cannot be resolved in the docker environment
- nginx does not start with docker-compose up -d command
- i want to build a rails5 + mysql app using docker only as a development environment
- ruby - [docker] cannot install required packages with webpackd
- ruby on rails - rails: not found error in entrypointsh when docker-compose up
- i want to import sql file into docker container (mysql) created on vagrant + virtualbox
- wordpress - mysql becomes restarting with docker-compose
- about when inputting postgresql initial data with docker