Portainer的介绍这里就不浪费字了,自行百度吧,下面直接开始正题.
[root@nginx data]# docker search portainer
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
portainer/portainer This Repo is now deprecated, use portainer/p… 2004
portainer/portainer-ce Portainer CE - Making Docker and Kubernetes … 225
portainer/agent An agent used to manage all the resources in… 85
portainer/templates App Templates for Portainer http://portainer… 20
lihaixin/portainer docker ui 15 [OK]
greenled/portainer-stack-utils Bash scripts to deploy/undeploy stacks in a … 6 [OK]
portainerci/portainer Portainer images automatically created via P… 4
portainer/portainer-k8s-beta Portainer for Kubernetes BETA 4
portainer/golang-builder Utility to build Golang binaries. 4 [OK]
hassioaddons/portainer 2
portainer/base Multi-stage build image to create the Portai… 2 [OK]
thibaudlabat/portainer_32 Portainer built for 32bit Linux [ OUTDATED ]… 1
softonic/portainer-endpoint Allows auto register all the swarm nodes in … 1 [OK]
portainerci/agent Portainer agent images automatically created… 0
iconviet/portainer 0
helloysd/portainer 0
portainer/agent-k8s-beta Portainer for Kubernetes BETA (agent) 0
11384eb/portainer 0
nenadilic84/portainer 0
hassioaddons/portainer-armv7 0
agiper/portainer 0
rancher/portainer-agent 0
hassioaddons/portainer-amd64 0
johnvmt/portainer-ecr-credentials Periodically updates the credentials Portain… 0 [OK]
webdevsvc/portainer portainer 0 [OK]
[root@nginx data]#
[root@nginx data]# docker pull portainer/portainer
[root@nginx data]#
镜像拉取完成后启动它有2种模式:
1、本机模式
docker run -d -p 8000:9000 -v /var/run/docker.sock:/var/run/docker.sock --restart=always --name prtainer portainer/portainer
2、远程模式
docker run -d -p 8000:9000 --restart=always --name prtainer portainer/portainer
本次演示环境只有一台,所以以本机模式运行,使用浏览器打开本地端口8000:
首次登陆需要设置密码,设置一个8位以上的密码就可以进入主界面了:
功能还是挺齐全的,主要是不用反复的敲命令操作了,通过鼠标就可以完成大部分操作。