Introduction to the

Portainer is a lightweight application that provides a graphical interface for easy management of Docker environments, both standalone and clustered.

  • The website of Portainer is www.portainer.io/
  • Install command: documentation. Portainer. IO/v2.0 / deploy…

The installation

Installing Portainer using Docker directly is very convenient and only takes two steps.

  • First download Portainer Docker image;
docker pull portainer/portainer
Copy the code
  • Then run the Portainer container with the following command;
docker volume create portainer_data
Copy the code
Note that the data directory needs to be created by itself
docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/home/ubuntu/data portainer/portainer-ce
Copy the code

After the command is executed, open a browser and visit xxx.XXX.xxx.xxx :9000

  • You need to create an administrator account when you log in to the system for the first time. The access address is XXX.XXX.XXX.xxx :9000/

We choose Docker(originally local) to manage the local Docker

Total information display of local Docker

Local Docker details display

Display of container information

Display mirror information

App Templates menu ~ Create Templates for containers. You can easily create containers from template Settings

Pull the mirror

  • Pull to complete

  • Verify in Ubuntu

Click for image details

Open containers using ubuntu images

The following is displayed on the Container management page

  • Display interface information

  • Select a Container to manage and perform operations on it

  • Run the stop command

Detailed data information

  • Log operation to view historical records of operations

  • Inspect inspect

  • Stats

  • Console on the console

  • Attach can be directly attached to the inside of the container for operation

View the history action in the Event

Run the following command to view volume information in volumes

Open the Users menu, create Portainer user, assign the corresponding role

Open Registries and configure your own mirror repository so that when pulling mirrors, you can pull them from your own mirror repository

conclusion

Portainer as a lightweight Docker graphical management tool, powerful and practical.