Portal is a free and open-source Docker graphical management tool, which can provide centralized management and operations such as status display panel, rapid deployment of application templates, container mirroring, basic operations of network data volumes (including uploading, downloading images, creating containers, etc.), event log display, container console operation, Swarm clusters and services Login user management and control. The function is very comprehensive, which can basically meet all the needs of small and medium-sized units for container management.
Portal has the following advantages:
1. Support container management and image management.
2. Lightweight, less resource consumption.
3. Based on Docker Api, it has high security. Docker Api port can be specified to support TLS certificate authentication.
4. Support permission allocation and clustering.
If it is aimed at the business needs of medium and large enterprises, it may need to be developed twice to meet the actual maintenance needs.
The following are the operations related to its installation and deployment:
Check the port related image source. Of course, we can also compile and make based on the source code.
[administrator@JavaLangOutOfMemory luga ]% docker search portainer NAME DESCRIPTION STARS OFFICIAL AUTOMATED portainer/portainer This Repo is now deprecated, use portainer/p... 2010 portainer/portainer-ce Portainer CE - Making Docker and Kubernetes ... 284 portainer/agent An agent used to manage all the resources in... 87 portainer/templates App Templates for Portainer http://portainer... 20 lihaixin/portainer docker ui 15 [OK] greenled/portainer-stack-utils Bash scripts to deploy/undeploy stacks in a ... 6 [OK] portainer/portainer-k8s-beta Portainer for Kubernetes BETA 4 portainer/golang-builder Utility to build Golang binaries. 4 [OK] portainerci/portainer Portainer images automatically created via P... 4 hassioaddons/portainer 2 portainer/base Multi-stage build image to create the Portai... 2 [OK] hassioaddons/portainer-armv7 1 softonic/portainer-endpoint Allows auto register all the swarm nodes in ... 1 [OK] thibaudlabat/portainer_32 Portainer built for 32bit Linux [ OUTDATED ]... 1 iconviet/portainer 0 helloysd/portainer 0 11384eb/portainer 0 hassioaddons/portainer-amd64 0 portainerci/agent Portainer agent images automatically created... 0 nenadilic84/portainer 0 rancher/portainer-agent 0 agiper/portainer 0 portainer/agent-k8s-beta Portainer for Kubernetes BETA (agent) 0 portainer/portainer-ee Portainer EE - Making Docker and Kubernetes ... 0 johnvmt/portainer-ecr-credentials Periodically updates the credentials Portain... 0 [OK]
Write the docker-compose.yaml file. Of course, you can also start it directly with Docker.
[administrator@JavaLangOutOfMemory luga ]% vi docker-compose-portainer.yaml version: '3' services: portainer: image: portainer/portainer:latest # Image name container_name: portainer # The container name is' container ' restart: always # Specify the restart policy after the container exits: always restart volumes: # The data volume mount path setting maps the local directory to the container directory - "/var/run/docker.sock:/var/run/docker.sock" - "./portainer/data:/data" - "./portainer/Portainer-CN:/public" # Sinicization environment: # Set the environment variable, which is equivalent to - e in the docker run command TZ: Asia/Shanghai LANG: en_US.UTF-8 ports: # Mapping port - "9000:9000"
Execute the startup command, and then pull the image to run the container.
[administrator@JavaLangOutOfMemory luga ]% docker-compose -f docker-compose-portainer.yaml up -d WARNING: Found orphan containers (luga_kafdrop_1, luga_kafka_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. Pulling portainer (portainer/portainer:latest)... latest: Pulling from portainer/portainer d1e017099d17: Pull complete 717377b83d5c: Pull complete Digest: sha256:f8c2b0a9ca640edf508a8a0830cf1963a1e0d2fd9936a64104b3f658e120b868 Status: Downloaded newer image for portainer/portainer:latest creating 3193e4c29d16_portainer ... done
[administrator@JavaLangOutOfMemory luga ]% docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 7131347b2e5c portainer/portainer:latest "/portainer" About a minute ago Up About a minute 0.0.0.0:9000->9000/tcp portainer
After the above command returns, it is found that it has been started successfully. Verify here:
[administrator@JavaLangOutOfMemory luga ]% curl -i 192.168.1.12:9000 HTTP/1.1 200 OK Accept-Ranges: bytes Cache-Control: max-age=31536000 Content-Length: 23203 Content-Type: text/html; charset=utf-8 Last-Modified: Wed, 22 Jul 2020 22:47:36 GMT X-Content-Type-Options: nosniff X-Xss-Protection: 1; mode=block Date: Sat, 16 Jan 2021 03:20:35 GMT <!DOCTYPE html ><html lang="en" ng-app="portainer"> <head> <meta charset="utf-8" /> <title>Portainer</title> <meta name="description" content="" /> <meta name="author" content="Portainer.io" /> <!-- HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Fav and touch icons --> <link rel="apple-touch-icon" sizes="180x180" href="dc4d092847be46242d8c013d1bc7c494.png" /> <link rel="icon" type="image/png" sizes="32x32" href="5ba13dcb526292ae707310a54e103cd1.png" /> <link rel="icon" type="image/png" sizes="16x16" href="f9508a64a1beb81be174e194573f7450.png" /> <link rel="mask-icon" href="07745d55b001c85826eedd479285cdbb.svg" color="#5bbad5" /> ... ...
Then access through the browser: http://192.168.1.12:9000 , enter the following page.
So far, portal.io has been successfully deployed. Next, perform various configuration operations on it. This form mainly displays the type of connection. This is local container management. The platform supports remote
The home page contains the function menu involved in the portal management platform, as well as the container, image, volume, network and resource overview currently running on this platform.
The container list displays the running status of all containers on the current platform and the executable operation commands for the containers. Including container start, stop, add, monitor, log view, container console and other functions.
The image form mainly includes the functions of image detailed view, deletion, import, export, etc.
In addition, we can make various customized configurations based on the platform to facilitate the management and maintenance of resource clusters.
In fact, this platform is very good. For ordinary companies, the container scale is not completely large. It is a good choice whether from the perspective of technical difficulty or maintainability and manageability. After all, it can be customized and developed.