什么是portainer
docker的图形化管理页面,提供一个后台页面给我我们操作
官方文档地址:https://www.portainer.io/installation/
#官方推荐的安装方法
$ docker volume create portainer_data
$ docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
[root@localhost ~]# docker run -d -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer-ce
Unable to find image 'portainer/portainer-ce:latest' locally
latest: Pulling from portainer/portainer-ce
d1e017099d17: Pull complete
b0718b1ef1b0: Pull complete
Digest: sha256:0ab9d25e9ac7b663a51afc6853875b2055d8812fcaf677d0013eba32d0bf0e0d
Status: Downloaded newer image for portainer/portainer-ce:latest
9d8bd674845ac701779ad5f95f24f8d84048c6dcaa56cd5909e2810605ac6dfb
[root@localhost ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9d8bd674845a portainer/portainer-ce "/portainer" 9 seconds ago Up 8 seconds 8000/tcp, 0.0.0.0:9000->9000/tcp portainer
在这能看到我们docker详细信息