Docker轻量级可视化工具 Portainer
需要了解
Portainer介绍

Portainer部署在华为云Flexus x实例上的优势
安装Portainer
创建卷
[root@flexusx-251f ~]
portainer_data
[root@flexusx-251f ~]
DRIVER VOLUME NAME
local portainer_data
拉取镜像
[root@flexusx-251f ~]
[root@flexusx-251f ~]
[root@flexusx-251f ~]
[root@flexusx-251f images]
portainer.tar
[root@flexusx-251f ~]
[root@flexusx-251f ~]
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/
Login Succeeded
[root@flexusx-251f ~]
latest: Pulling from cloud-wzs/portainer/portainer-ce
0ea73420e2bb: Pull complete
c367f59be2e1: Pull complete
b71b88d796e2: Pull complete
Digest: sha256:e6c1ef4ccdc0f3cf2d15e6425e64176002196e5391b689baeee056f4bdd12f83
Status: Downloaded newer image for swr.cn-north-4.myhuaweicloud.com/cloud-wzs/portainer/portainer-ce:latest
swr.cn-north-4.myhuaweicloud.com/cloud-wzs/portainer/portainer-ce:latest
[root@flexusx-251f ~]
REPOSITORY TAG IMAGE ID CREATED SIZE
swr.cn-north-4.myhuaweicloud.com/cloud-wzs/portainer/portainer-ce latest 0df02179156a 2 years ago 273MB
mysql 5.7 87eca374c0ed 3 years ago 447MB
wordpress latest bfcb59709143 3 years ago 550MB
mysql latest 8457e9155715 3 years ago 546MB
nginx latest 298ec0e28760 3 years ago 133MB
[root@flexusx-251f ~]
运行容器
[root@flexusx-251f ~]
3a888d70efa694e8fff41e6506bb24da3292a9e274b1149457983821d794bac3
[root@flexusx-251f ~]
3a888d70efa6 swr.cn-north-4.myhuaweicloud.com/cloud-wzs/portainer/portainer-ce:latest "/portainer" 17 seconds ago Up 16 seconds 0.0.0.0:8000->8000/tcp, :::8000->8000/tcp, 0.0.0.0:9443->9443/tcp, :::9443->9443/tcp, 9000/tcp portainer
登录
放行安全组


初始化配置
创建用户


查看本地docker信息

使用命令行进行查看
[root@flexusx-251f ~]
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 5 3 1.88GB 609.8MB (32%)
Containers 3 3 6B 0B (0%)
Local Volumes 1 1 69.07kB 0B (0%)
Build Cache 0 0 0B 0B
创建一个容器进行测试


[root@flexusx-251f ~]
2370f80be54e nginx:latest "/docker-entrypoint.…" About a minute ago Up About a minute 80/tcp hello

总结
