在我安装了Windows版docker打算安装portainer的时候,找到了下面的提示:
Manage the Docker environment where Portainer is running.
Ensure that you have started the Portainer container with the following Docker flag:
-v "/var/run/docker.sock:/var/run/docker.sock" (Linux).
or
-v \\.\pipe\docker_engine:\\.\pipe\docker_engine (Windows).
虽然我安装的是基于linux的容器,但是由于我用的windows系统,所以我当时尝试使用下面的命令,但是失败了。
然后换成linux的命令,成功了,
然而用everything根本就搜索不到docker.sock这个文件,所以心理很疑惑
后来发现,Windows版的docker创建了一个vhdx虚拟硬盘
然后我用先双击那个文件挂载,然后用diskgenius读里面的文件:
原来里面是linux的ext4文件系统
虽然最后还是没有找到docker.sock.....