安装Portainer

官方安装说明:https://www.portainer.io/installation/

[root@ubuntu1804 ~]#docker pullportainer/portainer[root@ubuntu1804 ~]#docker volume create portainer_dataportainer_data[root@ubuntu1804 ~]#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/portainer20db26b67b791648c2ef6aee444a5226a9c897ebcf0160050e722dbf4a4906e3[root@ubuntu1804 ~]#docker ps CONTAINER IDIMAGE COMMAND CREATED STATUSPORTSNAMES20db26b67b79portainer/portainer "/portainer"5 seconds ago Up 4 seconds0.0.0.0:8000->8000/tcp, 0.0.0.0:9000->9000/tcp portainer

登录和使用Portainer

用浏览器访问:http://localhost:9000