Reprint
Author:
https://blog.csdn.net/suchahaerkang/article/details/84591278
Reprint it for sorting and typesetting, and delete some things.
Introduction to DockerUI
DockerUI is an open source web application based on the Docker API, which provides most of the functions equivalent to the Docker command line, and supports container management and image management. It is most commendable for its gorgeous design and simple operation interface for running and managing docker.
DockerUI advantages:
1) Support container batch operations;
2) Support image management (although relatively weak)
Disadvantages of DockerUI:
Multiple hosts are not supported.
The following records the deployment process in the DockerUI management environment
installation
1) First pull the dockerUI image, now the dockerUI image location has changed, as follows:
# 之前镜像位置为dockerui/dockerui
[root@localhost ~]# docker pull uifd/ui-for-docker
[root@localhost ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
192.168.1.23:5000/tomcat7 latest 47c5123914a1 4 days ago 562.3 MB
docker.io/redis latest e4a35914679d 4 weeks ago 182.9 MB
docker.io/ubuntu latest 0ef2e08ed3fa 4 weeks ago 130 MB
centos7 7.3.1611 d5ebea14da54 5 weeks ago 311 MB
docker.io/centos latest 67591570dd29 3 months ago 191.8 MB
docker.io/tomcat latest ebb17717bed4 5 months ago 355.4 MB
docker.io/uifd/ui-for-docker latest 965940f98fa5 6 months ago 8.096 MB
<none> <none> 980e0e4c79ec 6 months ago 196.7 MB
Start DockerUI
If Selinux is enabled on the server, then you must use the –privileged flag. Here I turned off Selinux on this machine, so there is no need to add –privileged
[root@localhost ~]# 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
[root@localhost ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c078f0f41285 docker.io/uifd/ui-for-docker "/ui-for-docker" 4 seconds ago Up 2 seconds 0.0.0.0:9000->9000/tcp docker-web
[root@localhost ~]# vim /etc/sysconfig/iptables
......
-A INPUT -p tcp -m state --state NEW -m tcp --dport 9000 -j ACCEPT
[root@localhost ~]# systemctl restart iptables.service
access
Then you can access the DockerUI management interface in the browser. After starting the DockerUI container, you can use it to execute commands for starting, suspending, terminating, deleting, and other operations Docker containers provided by DockerUI. Enter http://ip-address:9000 in the browser. By default, login does not require authentication, but we can configure our web server to require login authentication.
DockerUI management
1.Dashboard console
Click the active container under Running Containers and enter the container management interface to perform related operations, such as modifying the container name, committing the container to a new image, etc.
2.container container management
Click Display All to display all created containers, including those that have not been started. Then click Action to start, close, restart, delete, and suspend the container.
3.images mirror management
Click Action to remove the existing mirror image. Click Pull to pull the mirror image. After you click the image ID to enter, you can add or remove the image tag
as shown in the screenshot below. When the image is pulled, the Registry is empty, and the image is pulled from the docker hub by default.
Click the mirror ID to enter, you can add or delete the mirror tag.