Docker lightweight graphical Page Management Portainer installation Configuration

Source: Internet
Author: User

Docker lightweight graphical Page Management Portainer installation Configuration
1. Introduction

Docker graphical Management provides many tools, such as Portainer, Docker UI, and Shipyard. This article mainly introduces Portainer.

Portainer is an open-source, lightweight Docker management user interface. Based on the Docker API, it provides the basic operations of the Status display panel, rapid deployment of application templates, and network volumes of container images (including uploading and downloading images, container creation and other operations), Event Log display, container console operations, Swarm clusters and services, centralized management and operations, login user management and control, and other functions. The function is comprehensive and can basically meet all container management needs of small and medium enterprises.

2. Create container 2.1 to download the official image

[Root @ bkjia/] # docker pull portainer/portainer
Using default tag: latest
Latest: Pulling from portainer/portainer
D1e017099d17: Pull complete
Ba5495c717cb: Pull complete
Digest: sha256: sha256
Status: Downloaded newer image for portainer/portainer: latest

2.2 single-host running

If there is only one docker host, you can use the standalone version. The Portainer standalone version runs very easily. You only need one statement to start the container and manage the docker images, containers, and other data on the machine.

Create a data volume:

[Root @ bkjia ~] # Docker volume create portainer_data
Portainer_data

Running container:

[Root @ bkjia ~] # Docker run-d-p 9000: 9000-v/var/run/docker. sock:/var/run/docker. sock-v portainer_data:/data portainer/portainer
Bytes

Parameter description:
-D: The container runs in the background;
-P 9000: 9000: host machine port 9000 is mapped to port 9000 in the container.
-V/var/run/docker. sock:/var/run/docker. sock: mounts the Unix domain socket listened by default to the Docker daemon of the host machine to the container;
-V portainer_data:/data: mount the host portainer_data volume to the container/data directory;

View the container process:

[Root @ bkjia ~] # Docker ps-l
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
439cc8a6d44a portainer/portainer "/portainer" 13 seconds ago Up 13 seconds 0.0.0.0: 9000-> 9000/tcp amazing_clarke

Access Service:

  • Access Method: http: // IP: 9000. You need to register a user for the first login and set a password for the user admin, for example:

  • Select "Local" for the standalone version and click Connect to the Local docker, for example:


Note: it can be seen that you need to mount local/var/run/docker. socker to the/var/run/docker. socker connection in the container. Therefore, you must specify the mount file at startup.

  • You can manage containers, images, networks, and data volumes, for example:

2.3 cluster operation

In more cases, we have a docker cluster with several or dozens of machines. Therefore, cluster management is very important, portainer also supports cluster management. Portainer can be used with Swarm to manage clusters. First, we need to build a Swarm. This article does not focus on the installation of the swarm cluster.

Start the portainer cluster:

  • Start cluster reference official documentation: https://portainer.io/install.html

$ 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

  • After the Portainer is started, the homepage still sets a password for the admin user (the same as the single-host startup ).

  • As shown in, swarm options are added. Other configurations are the same as those of the standalone portainer:

  • There are so many basic Portainer operations. You need to learn and understand the specific operation steps.
3. Reference Links

Https://portainer.io/
Official documents: https://portainer.readthedocs.io/
Demo URL: http://demo.portainer.io account admin password tryportainer

For more Docker tutorials, see the following:

Docker installation application (CentOS 6.5_x64) https://www.bkjia.com/Linux/2014-07/104595.htm
Configuration on Ubuntu 16.04 server using Docker https://www.bkjia.com/Linux/2017-06/145176.htm
Install Docker https://www.bkjia.com/Linux/2015-07/120444.htm in Ubuntu 15.04
Docker installation instance https://www.bkjia.com/Linux/2017-04/142666.htm
Docker create basic image https://www.bkjia.com/Linux/2017-05/144112.htm
How to install Docker and basic usage https://www.bkjia.com/Linux/2015-09/122885.htm on Ubuntu 15.04
Docker Use note https://www.bkjia.com/Linux/2016-12/138490.htm on Ubuntu 16.04
Use Docker to start https://www.bkjia.com/Linux/2017-04/142649.htm of frequently used applications in minutes
Ubuntu 16.04 Docker modify configuration file does not take effect solution https://www.bkjia.com/Linux/2017-05/143862.htm

Docker details: click here
Docker: click here

This article permanently updates link: https://www.bkjia.com/Linux/2018-03/151307.htm

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.