mysql--容器启动失败

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

解决方案:

1、

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


原文地址:https://www.cnblogs.com/lutt/p/12378508.html