Dorokhov.codes
portainer
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