我按照以下步骤在我的主机端口9000
上创建了一个Portainer容器。
但是我遇到了下面的错误:
C:\Program Files\Docker\docker.exe: Error response from daemon: named pipe mounts are not supported on this version of Windows.
重现步骤:
Allow Docker Connection Through Firewall by this:
netsh advfirewall firewall add rule name="Docker" dir=in action=allow protocol=TCP localport=2375 enable=yes profile=domain,private,public
Configure Docker Deamon to listen on both pipe and TCP:
2.1.
StopService docker
2.2.
dockerd --unregister-service
2.3.
dockerd -H npipe:// -H 0.0.0.0:2375 --registerservice
2.4.
Start-Service docker
Pull portainer image: docker pull portainer/portainer
Creating a volume: docker volume create portainer_data
Run Portainer
docker run -d --name portainer -p 9000:9000 --mount type=npipe,source=\\.\pipe\docker_engine,target=\\.\pipe\docker_engine --mount type=volume,source=portainer_data,target=C:\data portainer/portainer