mysql--容器启动失败

ERROR: for mysql Cannot start service mysql: b'Mounts denied: \r\nThe paths /mnt/Archery/src/docker-compose/mysql/my.cnf and /mnt/Archery/src/docker-compose/mysql/datadir\r\nare not shared from OS X and are not known to Docker.\r\nYou can configure shared paths from Docker -> Preferences... -> File Sharing.\r\nSee https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.\r\n.'
ERROR: Encountered errors while bringing up the project.

解决方案:

1、

设置完成之后 docker-compose -f docker-compose.yml up
即可成功


猜你喜欢

转载自www.cnblogs.com/lutt/p/12378508.html