DEV Community

loading...

How to use portainer in Windows 10 version 1809

will_huang profile image Will 保哥 ・1 min read

image Photo by chuttersnap on Unsplash

To running a portainer container in Windows Container is pretty straight forward that using the following commands.

docker volume create portainer_data
docker run -d -p 9000:9000 --name portainer --restart always -v \\.\pipe\docker_engine:\\.\pipe\docker_engine -v portainer_data:C:\data portainer/portainer

But the most undocumented notes are:

You must restart Docker service (com.docker.service) to make portainter works if you JUST installed Docker Desktop for Windows on Windows 10 version 1809!

Restart-Service com.docker.service

Restart computer also do the trick.

After the restarts, portainer will works as expected.

Discussion

pic
Editor guide