m
Size: a a a
m
MG
m
GG
GG
MG
GG
GG
AS
GG
volumes:
- type: bind
source: $PWD/data/mysql
target: /var/lib/mysql/
- type: bind
source: $PWD/logs/mysql
target: /opt/mysql_logs/
- type: bind
source: $PWD/config/mysql/my.cnf
target: /etc/mysql/my.cnf
AS
AS
If you use -v or --volume to bind-mount a file or directory that does not yet exist on the Docker host, -v creates the endpoint for you. It is always created as a directory.
If you use --mount to bind-mount a file or directory that does not yet exist on the Docker host, Docker does not automatically create it for you, but generates an error.
GG
AS
GG
AS
AS