Docker Container Learning grooming--web Management tools Dockerui Deployment Records
Docker provides a platform to package, distribute, share, and run applications as containers, and it has saved thousands of system administrators and developers by saving hours of work. Docker does not care what operating system is running on the host, it does not have the limitations of developing a language, framework, or packaging system, and can be run at any time, anywhere, from small computers to high-end servers.
Because running Docker containers and managing them can take a little effort and time, because web-based applications-dockerui, it makes it easy to manage and run containers. Dockerui is an open-source Docker API-based Web application that provides most of the functionality equivalent to the Docker command line, supports container management, image management. Its most commendable is its gorgeous design and simple interface for running and managing Docker.
Dockerui Advantages: 1) Support container batch operation; 2) support image management (although weaker) Dockerui disadvantage: Multi-master is not supported.
The following records the deployment process in the Dockerui management environment:
1) First pull the Dockerui mirror, now the Dockerui mirror position has changed, as follows: [[email protected] ~]# docker pull uifd/ ui-for-docker //previous mirror position is dockerui/dockerui [[ email protected] ~]# docker imagesrepository TAG IMAGE ID CREATED SIZEdocker.io/ubuntu latest 0458a4468cbc 7 days ago 111.7 mbdocker.io/centos latest ff426288ea90 3 weeks ago 207.2 MBdocker.io/nginx latest 3f8a4339aadd 5 weeks ago 108.5 MBdocker.io/uifd/ui-for-docker latest 965940f98fa5 17 months ago 8.096 MB 2) Start the Dockerui container. If the server has SELinux enabled, then the--PRIVILEGED flag must be used. Here I shut down selinux in this machine, so don't add--privileged[[email protected] ~]# docker run -it -d --name docker-web -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock docker.io/uifd/ui-for-docker[[email protected] ~]# docker psCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS namesccb30eab790c docker.io/uifd/ui-for-docker "/ui-for-docker" 7 seconds ago Up 6 seconds 0.0.0.0:9000->9000/tcp docker-web [[email Protected] ~]# vim /etc/sysconfig/iptables......-a input -m state --state NEW -m tcp -p tcp --dport 9000 -j ACCEPT [[email Protected] ~]# systemctl restart iptables.service
You can then access the Dockerui management interface in your browser. Once the Dockerui container is started, it can be used to perform commands for starting, pausing, terminating, deleting, and other operations that Dockerui provide for the Docker container. Enter http://ip-address:9000 in the browser, by default login does not require authentication, but you can configure our Web server to require login authentication.
Management of Dockerui:
1) Dashboard Console. Click on the active container below running containers to enter the container management interface for related operations, such as modifying the container name, committing the container as a new mirror, etc.
2) container container management. By clicking Display all, you can display all created containers, including those that were not started. Then click Action, you can start, close, restart, delete, suspend and so on the container.
3) Images image management. You can remove an existing mirror image by clicking Action. Click Pull to draw the image. Click on the image ID to add or remove the image tag.
Docker Container Learning grooming--web Management tools Dockerui Deployment Records