小陆同学

python 中文名:蟒蛇,设计者:Guido van Rossum

导航

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
即可成功


 

posted on 2020-02-28 18:49  小陆同学  阅读(1086)  评论(0编辑  收藏  举报