1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > Portainer容器管理软件 安装

Portainer容器管理软件 安装

时间:2020-02-07 18:36:05

相关推荐

Portainer容器管理软件 安装

独角兽企业重金招聘Python工程师标准>>>

Portainer容器管理软件,安装

原文来自:https://portainer.io/overview.html

Portainer runs as a lightweight Docker container (the Docker image weights less than 4MB) on a Docker engine or Swarm cluster. Therefore, you are one command away from running container on any machine using Docker.

Deploy Portainer

Use the following Docker commands to deploy Portainer:

$ docker volume create portainer_data$ docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer

You'll just need to access the port 9000 of the Docker engine where portainer is running using your browser.

注意:the-v /var/run/docker.sock:/var/run/docker.sockoption can be used in Linux environments only.

Manage a Swarm cluster with Portainer

Deploying Portainer to manage a Swarm cluster is just as easy ! You can directly deploy Portainer as a service in your Docker cluster.

$ docker service create \--name portainer \--publish 9000:9000 \--replicas=1 \--constraint 'node.role == manager' \--mount type=bind,src=//var/run/docker.sock,dst=/var/run/docker.sock \--mount type=bind,src=//opt/portainer,dst=/data \portainer/portainer \-H unix:///var/run/docker.sock

And more deployment scenarios

Have a look at our installation documentation for more deployment scenarios such as Portainer with data persistence, TLS authentication enabled engine, non-Docker setup or reverse proxy integrations.

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。