Answer the question
In order to leave comments, you need to log in
Where does Docker store volumes?
Where does Docker store volumes?
For example, we have a docker file in which the service is declared and in the volume we wrote something like:
mysql:
image: library/mysql:5.6
ports:
- "3306:3306"
volumes:
- ./mysql/data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: pass
MYSQL_DATABASE: app
MYSQL_USER: app
MYSQL_PASSWORD: pass
mysql:
image: library/mysql:5.6
ports:
- "3306:3306"
volumes:
- mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: pass
MYSQL_DATABASE: app
MYSQL_USER: app
MYSQL_PASSWORD: pass
volumes:
mysql:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question