簡(jiǎn)介
Portainer是Docker的圖形化管理工具缰趋,提供狀態(tài)顯示面板总放、應(yīng)用模板快速部署哺眯、容器鏡像網(wǎng)絡(luò)數(shù)據(jù)卷的基本操作(包括上傳下載鏡像谷浅,創(chuàng)建容器等操作)、事件日志顯示奶卓、容器控制臺(tái)操作一疯、Swarm集群和服務(wù)等集中管理和操作畦贸、登錄用戶管理和控制等功能唆缴。功能十分全面,基本能滿足中小型單位對(duì)容器管理的全部需求尚蝌。
安裝
安裝官網(wǎng)地址參考:
https://portainer.readthedocs.io/en/stable/deployment.html
單機(jī)安裝:
docker service create --name portainer --publish 9000:9000 --replicas=1 --constraint 'node.role == manager' --mount type=bind,src=//data/portainer,dst=/data --mount type=bind,src=//var/run/docker.sock,dst=/var/run/docker.sock portainer/portainer:1.19.1 -H unix:///var/run/docker.sock
swarm集群安裝
- [x] 必須在swarm manager節(jié)點(diǎn)執(zhí)行
mkdir /usr/local/portainer
$ curl -L https://portainer.io/download/portainer-agent-stack.yml -o /usr/local/portainer/portainer-agent-stack.yml
$ docker stack deploy -c /usr/local/portainer/portainer-agent-stack.yml portainer
- [x] 刪除
docker stack rm portainer
使用
管理員界面:
image.png
使用比較簡(jiǎn)單瑟幕,不再贅述。