Myluzh Blog

安装docker可视化管理工具Portainer

发布时间: 2022-8-18 文章作者: myluzh 分类名称: Docker 朗读文章


#搜索
docker search portainer
C:\Users\myluzh>docker search portainer
NAME                                   DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
portainer/portainer                    This Repo is now deprecated, use portainer/p…   2251
portainer/portainer-ce                 Portainer CE - a lightweight service deliver…   1297
portainer/agent                        An agent used to manage all the resources in…   158
portainer/templates                    App Templates for Portainer http://portainer…   25
portainer/portainer-ee                 Portainer BE - a fully featured service deli…   24
portainer/golang-builder               Utility to build Golang binaries.               6                    [OK]

#拉取
docker pull portainer/portainer
2023-06-26更新,原先的已经弃用,请使用docker pull portainer/portainer-ce
C:\Users\myluzh>docker pull portainer/portainer
Using default tag: latest
latest: Pulling from portainer/portainer
94cfa856b2b1: Pull complete
49d59ee0881a: Pull complete
a2300fd28637: Pull complete
Digest: sha256:fb45b43738646048a0a0cc74fcee2865b69efde857e710126084ee5de9be0f3f
Status: Downloaded newer image for portainer/portainer:latest
docker.io/portainer/portainer:latest

#运行

docker run -d -p 9000:9000 --restart=always -v /var/run/docker.sock:/var/run/docker.sock --name portainer portainer/portainer
C:\Users\myluzh>docker run -d -p 9000:9000 --restart=always -v /var/run/docker.sock:/var/run/docker.sock --name portainer portainer/portainer
827b68a97d4bbe4f6d2cba3d633f7ceedbc8f89550bbe5e028ed522328257df5
#查看运行情况
docker ps
C:\Users\myluzh>docker ps
CONTAINER ID   IMAGE                 COMMAND                  CREATED         STATUS         PORTS                               NAMES
827b68a97d4b   portainer/portainer   "/portainer"             5 minutes ago   Up 4 minutes   0.0.0.0:9000->9000/tcp              portainer

# 查看日志
docker logs -f portainer

标签: docker Portainer

发表评论