In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to install and configure DockerUI on Linux". The explanation in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian and study and learn "how to install and configure DockerUI on Linux" together.
Docker is becoming more popular. Running an entire operating system in a container rather than a virtual machine is a great technique and idea. Docker has saved thousands of system administrators and developers by saving time at work. This is an open source technology that provides a platform to package, distribute, share, and run applications as containers, regardless of what operating system is running on the host. It has no development language, framework, or packaging system limitations and can run anywhere, anytime, from minicomputers to high-end servers.
Running docker containers and managing them can take a little bit of effort and time, so there's now a web-based app-DockerUI-that makes it easy to manage and run containers. DockerUI is a useful tool for those unfamiliar with the Linux command line but eager to run containerized programs. DockerUI is an open-source web-based application that deserves praise for its gorgeous design and simple user interface for running and managing docker.
Here's how to install and configure DockerUI on Linux.
1. install Docker
First, we need to install docker. We have docker developers to thank for making it easy to install docker on major Linux distributions. To install docker, we need to use the following command on the appropriate distribution.
Ubuntu/Fedora/CentOS/RHEL/Debian
Docker maintainers have written a great script to install docker on Linux distributions Ubuntu 15.04/14.10/14.04, CentOS 6.x/7, Fedora 22, RHEL 7, and Debian 8.x. This script identifies the linux distribution running on our machine, then adds the required source libraries to the file system, updates the local installation source directory, and *** installs docker and its dependencies. To install docker using this script, we need to run the following command under root or sudo privileges:
# curl -sSL https://get.docker.com/ | sh
OpenSuse/SUSE Linux Enterprise Edition
To install docker on a machine running OpenSuse 13.1/13.2 or SUSE Linux Enterprise Server 12, we simply execute the zypper command. Run the following command to install the *** version of docker:
# zypper in docker
ArchLinux
Docker can be found in ArchLinux's official sources and community-maintained AUR libraries. So on ArchLinux we have two ways to install docker. To use the official source installation, you need to execute the following pacman command:
# pacman -S docker
To install docker from the community source AUR, execute the following command:
# yaourt -S docker-git
2. start
Once docker is installed, we need to run the docker daemon before we can run and manage the docker container. We need to use the following command to confirm that the docker daemon is installed and running.
On SysVinit
# service docker start
on Systemd
# systemctl start docker
3. Install DockerUI
DockerUI is much easier to install than docker. We just need to pull dockerui from the docker registry and run it inside the container. To do this, we simply need to execute the following command:
# docker run -d -p 9000:9000 --privileged -v /var/run/docker.sock:/var/run/docker.sock dockerui/dockerui
In the above command, the default port used by dockerui is 9000. We need to map the default port using the-p command. Using the-v flag we can specify the docker socket. If the host uses SELinux then the--privileged flag must be used.
After executing the above command, we need to check whether the DockerUI container is running, or use the following command to check:
# docker ps
4. Pull docker image
Now we can't pull images directly using DockerUI, so we need to pull docker images from the command line. To do this we need to execute the following command.
# docker pull ubuntu
The above command will pull an image labeled ubuntu from Docker Hub, the official docker source. Similarly, we can pull other images we need from the Hub.
4. management
Once the DockerUI container is started, we can use it to execute commands that start, pause, terminate, delete, and otherwise manipulate docker containers provided by DockerUI.
First, we need to open dockerui in a web browser: enter http://ip-address:9000 or http://mydomain.com:9000 in the browser, depending on your system configuration. By default login does not require authentication, but our web server can be configured to require login authentication. To start a container, we need to have an image of the program we want to run.
create
We need to click on the image id of the container we want to create in the Images page. Then click the Create button and we are asked to enter the attributes needed to create the container. Once this is done, we need to click the Create button to complete the final creation.
stop
To stop a container, we simply jump to the Containers page and select the container we want to stop. Then press Stop in the Action submenu.
pause and resume
To pause a container, simply select the target container and click Pause. To restore a container, click Unpause in the Actions submenu.
delete
Similar to the task we completed above, it is easy to kill or delete a container or mirror. Just check, select the container or mirror, and click Kill or Remove.
conclusion
DockerUI uses the docker remote API to provide a great web interface for managing docker containers. Its developers designed and developed the app entirely using HTML and JS. This application is currently under development and has a lot of work to do, so we do not recommend it for production use. It helps users manage containers and mirrors easily, and with little effort. If you want to contribute to DockerUI, you can visit their Github repository. If you have questions, suggestions, feedback, please write in the comment box below so we can modify or update our content. Thank you!
Thank you for reading, the above is "how to install and configure DockerUI on Linux" content, after the study of this article, I believe everyone on how to install and configure DockerUI on Linux this problem has a deeper understanding, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
How can I post the WORD document?
© 2024 shulou.com SLNews company. All rights reserved.