arrow_back
Back

Portainer Docker: web UI for containers, images, and stacks

Andrew Dorokhov Andrew Dorokhov schedule 1 min read
menu_book Table of Contents

Using portainer we can do the same things as we do, using Docker CLI.

Setting up

docker volume create portainer

Running

Create the Portainer container:

docker container run -d --name portainer -p 8080:9000 \
--restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer:/data \
portainer/portainer-ce

Opening

http://localhost:8080

Running within Swarm

docker service create \
--name portainer \
--publish 8000:9000 \
--constraint 'node.role == manager' \
--mount type=volume,src=portainer,dst=/data \
--mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
portainer/portainer-ce \
-H unix:///var/run/docker.sock
code

Need Help with Development?

Happy to help — reach out via the contacts or go straight to my Upwork profile.

work View Upwork Profile arrow_forward
Next Article

yiisoftware/yii2-php Docker image: Yii 2 PHP container

arrow_forward