1. Docker 可视化工具
1.1 安装 Portainer
- 官方安装:https://www.portainer.io/installation/ ```dockerfile [root@ubuntu1804 ~]#docker pull portainer/portainer
[root@ubuntu1804 ~]#docker volume create portainer_data portainer_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/portainer 20db26b67b791648c2ef6aee444a5226a9c897ebcf0160050e722dbf4a4906e3 [root@ubuntu1804 ~]#docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 20db26b67b79 portainer/portainer “/portainer” 5 seconds ago Up 4 seconds 0.0.0.0:8000->8000/tcp, 0.0.0.0:9000->9000/tcp portainer ```
1.2 登录和使用 Portainer
用浏览器访问:http://IP:9000
创建用户,选择 Local