The portainer of the Docker container Lightweight web management tool

Source: Internet
Author: User
Tags docker run

portainer Deployment & monitoring Tools

official Address: Https://github.com/portainer/portainer

Deployment Method: https://portainer.readthedocs.io/en/latest/deployment.html


Method 1 , local container-based deployment "recommended"

in 192.168.2.29 This host is an example.

first you need to open Docker of the 2375 Port

Vi/etc/sysconfig/docker Add on

CENTOS6 under Use other_args= '-htcp://0.0.0.0:2375-h unix:///var/run/docker.sock '

Centos7 under Use options= '-htcp://0.0.0.0:2375-h unix:///var/run/docker.sock '

and then restart Docker

Pull the mirror and start

Docker Pull Portainer/portainer


Docker Run-d-p 9000:9000portainer/portainer-h tcp://192.168.2.29:2375


Then the browser can access it.

650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M00/8B/CB/wKioL1hZJJGBrELUAADpm5hxiPU977.png "title=" 11111. PNG "alt=" wkiol1hzjjgbreluaadpm5hxipu977.png "/>



You can create containers and monitor container States. This container does not have a login function, if you want to use the production environment, you need to give it a front with nginx to do a reverse proxy, plus password Authentication.

Method 2 , connecting to a remote container deployment

Docker Run-d-p 9000:9000portainer/portainer-h tcp://<remote_host>:<remote_port>

Method 3 , connect to Swarm deployment of the cluster

Docker Run-d-p 9000:9000portainer/portainer-h Tcp://<remote_host>:<remote_port>--swarm

Or

Docker service Create--name portainer \

--publish 9,000:9,000 \

--constraint ' Node.role = = Manager ' \

--mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock\

Portainer/portainer \

--swarm

Method 4 , no container-dependent deployment

Cd/opt

Wgethttps://github.com/portainer/portainer/releases/download/1.10.2/portainer-1.10.2-linux-amd64.tar.gz

Tar XF portainer-1.10.2-linux-amd64.tar.gz

Execution /opt/portainer/portainer-htcp://docker_host:docker_port

or /portainer/portainer-htcp://docker_host:docker_port-p 8080 this way of customizing the port

Discovery Scenarios 4 the effect is not ideal, the loading speed is very slow.

overall, It is recommended to use the method if it is to be used 1 . In addition, this tool interface is not as good as shipyard .


The portainer of the Docker container Lightweight web management tool

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.