docker swarm集群安装搭建portainer UI管理

 时间:2024-11-05 07:40:23

1、这里先介绍集群的

docker swarm集群安装搭建portainer UI管理

2、运行docker service create \ --name portainer \ --publish 9000:9000 \ --constraint 'node.role == manager' \ --mount type=bind,src=//var/run/docker.sock,dst=/var/run/docker.sock \ portainer/portainer \ -H unix:///var/run/docker.sock端口号和其他挂载可以根据自己需求修改

docker swarm集群安装搭建portainer UI管理

3、然后访问你的docker主机ip+端口号9000,这里是改过端口号的,然后设置管理员密码

docker swarm集群安装搭建portainer UI管理

4、设置完成后就进入主页了

docker swarm集群安装搭建portainer UI管理

5、可以看到所有节点了

docker swarm集群安装搭建portainer UI管理

6、单机运行也很简单docker run -d 颍骈城茇-p 9000:9000 portainer/portainer -H tcp://<REMOTE_HOST>:<REMOTE忧溲枷茫_PORT>,注意端口号,和docker的要一致,可以通过docker info 查看

docker swarm集群安装搭建portainer UI管理docker swarm集群安装搭建portainer UI管理

7、服务启动好后

docker swarm集群安装搭建portainer UI管理

8、运行和集群的一样

docker swarm集群安装搭建portainer UI管理
  • ipv4和ipv6的区别是什么?
  • 如何在64位Ubuntu中编译32位Wine
  • 手把手教你操作Wireshark
  • Packet Tracer 配置VALN
  • visual studio 多核并发开发
  • 热门搜索
    旅游购物 同城旅游网站 中国国家旅游局 湖北省旅游局 广西防城港旅游 上海旅游网 湖南旅游地图 临海旅游 旅游新疆 三亚旅游路线