人生有涯,学海无涯
介绍
Portainer是一个可视化的容器镜像的图形管理工具,利用Portainer可以轻松构建,管理和维护Docker环境。 而且完全免费,基于容器化的安装方式,方便高效部署。
官网地址:https://www.portainer.io/
安装
官方安装说明:https://www.portainer.io/installation/
# 命令
docker run -d -p 8088:9000 \
--restart=always -v /var/run/docker.sock:/var/run/docker.sock --privileged=true portainer/portainer
# 测试
[root@jiangwang home]# docker run -d -p 8088:9000 \
> --restart=always -v /var/run/docker.sock:/var/run/docker.sock --privileged=true portainer/portainer
Unable to find image 'portainer/portainer:latest' locally
latest: Pulling from portainer/portainer
d1e017099d17: Pull complete
717377b83d5c: Pull complete
Digest: sha256:f8c2b0a9ca640edf508a8a0830cf1963a1e0d2fd9936a64104b3f658e120b868
Status: Downloaded newer image for portainer/portainer:latest
66e1fb718e1f3b45892b17a9bac495666fbee4f6eb4de7d59eb7a15a5557d168
[root@jiangwang home]#
登录和使用Portainer
浏览器输入:你的外网ip:8088 (前提是你的阿里云安全组的8088端口已经开放),如下是登录页面
登录进去:
查看容器:
查看镜像:
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。