我已经尝试了我能想到的所有方法,但我无法安装卷
Windows machine
Docker version 20.10.5, build 55c4c88
Container linux
.env 文件
volumes:
- ./pgadmin/config:/pgadmin/config
- ./pgadmin/share:/host
- ./ssh:/ssh
我尝试使用相对路径,//C/.... 路径,在 docker 的 UI 配置中添加了卷,确保我使用的是 HyperV 并且没有任何效果,我仍然遇到此错误:
standard_init_linux.go:219: exec user process caused: no such file or directory
这是一个安装错误,因为它在 linux 机器内工作,我不使用 ubuntu 的主要原因是我需要 host.docker.internal 它是 windows/mac 独有的功能,我无法更改它因为这是我无法修改的生产容器。