Docker graphical interface management tool - Portainer

Portainer (based on the Go) is a lightweight management interface that allows you to easily manage Docker Swarm host or cluster.

Portainer intended use is simple to deploy. It contains a single container (Docker for Linux and Docker for Windows) can run on any Docker engine.

Portainer allows you to manage Docker containers, image, volume, network and so on. It is compatible with independent engine and Docker Docker Swarm.

Docker command to install:

docker volume create portainer_data

docker run -d -p 9000:9000 --name Portainer -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer

Swarm clustered deployment:

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

Docker Compose deployment:

version: '2'
services:
  portainer:
    image: portainer/portainer
    command: -H unix:///var/run/docker.sock
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - portainer_data:/data
volumes:
  portainer_data:

use

Visit http: // localhost: 9000 /

Guess you like

Origin www.cnblogs.com/zuoruining/p/11031294.html