我正在尝试在 Windows 10 上从 Debian 发行版中直接启动一个 Docker 项目,但出现了以下错误:
$ docker compose up -d
[+] Running 0/0
⠋ Container core_php74_1 Creating 0.0s
Error response from daemon: path /home/me/path/to/project is mounted on / but it is not a shared mount.
如何将挂载路径 /home/me/path/to/project
转换为共享挂载?
/docker-entrypoint-initdb.d/:ro
来填充我的MySQL数据库,但它无法自动运行我的数据库种子。删除/:ro
对我解决了这个问题。 - Kyle Crossman/
,这样你的配置就是/docker-entrypoint-initdb.d:ro
。:ro
表示只读。 - Colin Eininger