1 introduction

I never thought Docker had a visualization tool, because its commands are very clear and simple. Boring search, the original Docker has a lot of visual tools. Shipyard, Rancher, Portainer, etc. Check the comparison, finally think Portainer is good, functional, simple interface good-looking, installed to play.

2 Portainer characteristics

Portainer is a lightweight Docker environment management UI. The main advantages are:

  • Lightweight, the image is only tens of meters, very light compared to other UI tools;
  • Easy to use, it is also aDockerApplication, directly pull the mirror and start;
  • Constantly updating, as a great open source project,GitHubIt is still being maintained and updated;
  • Complete functions, such as the following:
    • Complete rights management (team, role, user control);
    • Image management;
    • Container management;
    • Host and cluster status display.
    • Rapid deployment of application templates;
    • Event log display;
    • otherDockerRelated functions, etc.

3 Explore the Portainer

3.1 installation

Pull the latest image first:

$ docker pull portainer/portainer:latestCopy the code

Create a volume for the Portainer:

$ docker volume create portainer_dataCopy the code

One command starts:

$ docker run -d -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainerCopy the code

Note that –restart=always is used to automatically restart the container when Docker restarts.

After successful startup, access the address http://localhost:9000/.

3.2 Several important features

When logging in to the page for the first time, you need to create an administrator account and the password must contain at least eight characters.

After successful login, the Docker environment needs to be associated, and the Local environment is configured here.

After the configuration is complete, you can view Dashboard to see the overall situation of the Docker environment, such as the number of images, the number of containers, the running status, Volume, and so on.

The mirror function includes the following functions: view the list, import and export, pull and push, create, and delete commands.

Container functions are the same, such as create, start, stop, kill, restart, delete, and so on.

Rights management includes managing teams, roles, and users.

3.3 Try new things online

If you want to try it out before you decide, you can go to demo.portainer. IO/admin and tryportainer.

4 summarizes

UI provides convenience for intuitive viewing of the Docker environment, but it is recommended to tap the command line more at the beginning.


Welcome to visit www.pkslow.com for more wonderful articles!

Welcome to follow the wechat public account < pumpkin shuo >, will continue to update for you…

Read more, share more; Write more. Organize more.