In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to parse the Docker container, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
Containers can be roughly divided into two categories by purpose: service containers and tool containers.
1. Service containers run in the form of daemon and provide services to the outside world. Such as web server, database and so on. It is very appropriate to launch such containers in the background with-d. If you want to troubleshoot, you can enter the container through exec-it.
two。 Utility containers usually provide us with a temporary working environment, which usually runs in a run-it manner, such as:
The purpose of running busybox,run-it is to enter directly after the container starts. We have verified the ability to access internet in the container through wget. Execute exit to exit the terminal while the container stops.
Tool containers often use basic images, such as busybox, debian, ubuntu, and so on.
Summary of container operation
Knowledge points related to container operation:
The container stops when the command specified by the CMD or Entrypoint or docker run command line ends.
Start the container in the background with the-d parameter.
Through exec-it, you can enter the container and execute commands.
There are three ways to specify a container:
Short ID.
Long ID.
Container name. You can name the container through-- name. Renaming the container executes docker rename.
Containers can be divided into two categories according to their purpose:
The container for the service class.
The container for the tool class.
The above is how to parse the Docker container, and the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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
© 2024 shulou.com SLNews company. All rights reserved.