Linux系统:CentOS Linux release 7.4.1708 (Core)
Docker版本: 17.03.0-ce, build 3a232c8
1、查询镜像
[root@wngpenghao ~]# docker search portainer/portainer
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
[root@wngpenghao ~]# docker search portainer
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
portainer/portainer Making Docker management easy. https://por... 1376
portainer/agent An agent used to manage all the resources ... 48
portainer/templates App Templates for Portainer http://portain... 16
lihaixin/portainer docker ui 8 [OK]
portainer/golang-builder Utility to build Golang binaries. 4 [OK]
portainerci/portainer Portainer images automatically created via... 4
greenled/portainer-stack-utils Bash scripts to deploy/undeploy stacks in ... 3 [OK]
stefanscherer/portainer Portainer for Windows 1809 and some older ... 2
dockerframework/portainer Portainer (Simple Management UI for Docker... 1 [OK]
j0nnylester/portainer portainer running on a Raspberry Pi 1
hassioaddons/portainer 1
portainer/base Multi-stage build image to create the Port... 1 [OK]
softonic/portainer-endpoint Allows auto register all the swarm nodes i... 1 [OK]
hassioaddons/portainer-amd64 0
rancher/portainer-agent 0
rodjers/portainer Swarm portainer 0
nenadilic84/portainer 0
hassioaddons/portainer-armv7 0
11384eb/portainer 0
helloysd/portainer 0
portainer/angular-builder Builder image for Portainer frontend. 0 [OK]
ssbkang/portainer 0
portainerci/agent Portainer agent images automatically creat... 0
profidata/portainer Fork of portioner/portainer 0
ollijanatuinen/portainer debug/development versions of portainer 0
2、选择镜像
[root@wngpenghao ~]# docker pull portainer/portainer
Using default tag: latest
latest: Pulling from portainer/portainer
d1e017099d17: Pull complete
292b789be2e4: Pull complete
Digest: sha256:63eb47d4b408c3f39e942368bcbf7e157a2b6e5dda94ffd403a14199e1137133
Status: Downloaded newer image for portainer/portainer:latest
[root@wngpenghao ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
portainer/portainer latest d1219c88aa21 7 days ago 80.8 MB
3、启动镜像
[root@wngpenghao ~]# docker run -d --name portainerUI -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer
7394088a4a058d3a40fde2f076372a2f33de95ec00d010425076c6bed50d5c62
[root@wngpenghao ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7394088a4a05 portainer/portainer "/portainer" 3 minutes ago Up 42 seconds 0.0.0.0:9000->9000/tcp portainerUI
4、浏览器访问 http://xxx.xxx.xxx.xxx:9000 。
初次进入会进入设置密码界面,设置一个密码即可,点击创建用户即可。
现在就可以使用了,点击Local进入仪表盘主页面。