Docker more and more popular. Run a full operating system in a container rather than inside the virtual machine is a wonderful technology and ideas. docker has passed save time to save hundreds of thousands of system administrators and developers. This is an open-source technology to provide a platform to the application as a container to package, distribute, share, and run, rather than focus on what operating system is running on the host Yes. It did not develop language, framework or packaging system constraints, and may at any time, any place to run, from small computers to high-end servers can be.
Run Docker containers and manage them may take a little time and effort, so now there is a web-based application -DockerUI, allowing management and operation of the vessel becomes very simple. DockerUI is for those who are not familiar with the Linux command line, but would like to run the container of the program were very helpful tool. DockerUI is an open source web-based application, it is most noteworthy is its gorgeous design and to run and manage the docker's simple interface.
The following will explain how to install configure DockerUI on Linux.
1. Install docker
First, we need to install docker. We have to thank docker developers, so that we can simply install docker in the mainstream linux distribution. To install docker, we have to use the following command in the corresponding release.
Ubuntu / Fedora / CentOS / RHEL / Debian
docker maintainer has written a great script, you can use it in Ubuntu 15.04 / 14.10 / 14.04, CentOS 6.x / 7, install docker on Fedora 22, RHEL 7 and Debian 8.x several linux distributions. This script can identify releases running on our linux machine, and then add the required libraries to the source file system and update the local installation source directory, and finally install docker dependent libraries. To use this script to install the docker, we need to run the following command in the root or sudo user privileges,
# Curl -sSL https://get.docker.com/ | sh
OpenSUSE / SUSE Linux Enterprise Edition
To run OpenSuse 13.1 / 13.2 on the machine or installation docker 12 SUSE Linux Enterprise Server, we simply execute zypper command. Run the following command to install the latest version of docker:
# Zypper in docker
docker ArchLinux can be found in the official source and community-maintained AUR repository. So in ArchLinux We have two ways to install docker. Using the official source installation, you need to perform the following pacman command:
# Pacman -S docker
If you want to install AUR community source docker, execute the following command:
# Yaourt -S docker-git
After installing docker, we need to run the docker daemon, before you can run and manage docker container. We need to use the following command to confirm docker daemon is already installed and running.
# Service docker start
#systemctl start docker
3. Install DockerUI
DockerUI installation much simpler than installing docker. We just need to pull from the docker dockerui registry, and then run inside the container. To accomplish this, we simply execute the following command:
# Docker run -d -p 9000: 9000 - privileged -v /var/run/docker.sock:/var/run/docker.sock dockerui / dockerui
Starting DockerUI Container
In the above command, the default port is used dockerui 9000, we need to use the -p command to map the default port. We can use the -v flag to specify docker's socket. If the host used SELinux then you have to use --privileged flag.
After executing the above command, we have to check whether the vessel DockerUI run, or use the following command to check:
# Docker ps
Running Docker Containers
4. Pull docker mirror
Now we can not directly use DockerUI pull the mirror, so we need to take on the command line drop-down mirror docker. To accomplish this we need to execute the following command.
# Docker pull ubuntu
Docker Image Pull
The above command will take a marker for ubuntu mirror docker official source from Docker Hub pull. Other mirrors like we can pull from the Hub needs.
After starting the DockerUI container, we can use it to perform start, suspend, terminate, delete and other operations docker container DockerUI command provided.
First, we need to open the web browser inside dockerui: inside the browser enter http: // ip-address: 9000 or http://mydomain.com:9000, to be configured according to your specific system. By default, the login authentication is not required, but you can configure our web server to require login authentication. To start a container, we need to have our image that contains the program you want to run.
We need to create a container in the Images page, click on the container we want to create a mirror id. Then click on the Create button, then we will be asked to enter the container to create the desired properties. After this is done, we need to click on the Create button to complete the final creation.
Creating Docker Container
To stop a container, we just need to jump to the Containers page, select the container you want to stop. Then press Stop on the inside Action submenu on the line.
Pausing and resuming
To pause a container, simply select the destination container, and then click Pause on the line. Only you need to restore a container inside the Actions submenu Unpause click on the line.
Like we've done above task, kill or delete a container or mirror is very simple. Only need to check, select the container or the mirror, and then click Remove or Kill on the line.
DockerUI use docker remote API provides a great management docker container web interface. It developers use HTML and JS entirely designed and developed for this application. Currently the program is still in development, and there is a lot of work to be done, so we do not recommend its use in a production environment. It can help users to complete a simple container management and mirror, and only needs a little work. If you want to contribute to DockerUI you can access their Github repository. If you have questions, suggestions, feedback, please write in the comments box below, so that we can modify or update our content. Thank you.