Technical work, should be praised and then see, form a habitCopy the code
Docker use tutorial related series of directories
1. Pull the mirror
Find the image for Portainer
docker search portainer
Copy the code
Pull the mirror
docker pull docker.io/portainer/portainer
Copy the code
2. Run the image
62771b0b9b09 is the ID of the mirror
docker run -d -p 9000:9000 --name portainer --privileged=true --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data 62771b0b9b09
Copy the code
Open your browser http://:9000
You need to register for the first login and set a password for the admin user
After a successful login, associate the Docker environment with the Local environment
Home page
3. Introduction to portainer
After login, you can view and manage information about each image, container, network, and Volume on the service
Container operation
You can create, start, stop and delete containers directly on the page, which is very convenient.
You can also view the container log.
mirror
The mirror function allows you to view the list, import/export, pull, push, create, and delete commands.
Rights management
The rights management function involves the management of teams, roles, and users.
4. Analyze the advantages and disadvantages
advantages
- Supports container management and image management
- Lightweight and consumes less resources
- Docker API based, high security, docker API port can be specified, support TLS certificate authentication.
- Support permission Assignment
- Support the cluster
disadvantages
- Not powerful enough.
- After a container is created, ports cannot be added in the background
5, conclusion
Although the function is not powerful enough, but it can meet the basic needs, and support permission allocation, small and medium-sized companies have been enough.
Hosted at: github.com/portainer/p…
Reference: juejin. Cn/post / 684490…