In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how the docker container interacts". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how the docker container interacts.
Interact with containers, and the created containers are listed in the docker tool window. When you select a container, you can view its ID (and the ID of the corresponding image) and use the buttons on the Properties tab to copy it to the clipboard.
You can also specify a new name for the container and click "Save" to start another container with the new name in the same image.
By default, the Docker tool window displays all containers, including those that are not running. To hide stopped containers from the list, click the filter (Filter) menu on the Docker toolbar, and then click Show stopped containers (Show Stopped Containers) to remove the check mark.
If the container was created using the Docker running configuration, to view its deployment log, select it and open the deployment log (Deploy log) tab. To view the container's Log information from its STDOUT and STDERR, select it and open the Log tab.
Execute commands in a running container
1. In the Docker tool window, right-click the container name, and then click Exec.
two。 In the Container run Command (Run command in container) pop-up window, click create (Create).
3. In the Exec dialog box, enter the command and click OK. For example:
Ls / tmp lists the contents of the / tmp directory mkdir / tmp/my-new-dir creates a my-new-dir directory / bin/bash in the / tmp directory to start a bash session
View details about running containers
In the Docker tool window, right-click the container name, and then click Inspect.
The output is rendered as an array of JSON on the check tab.
View the processes running in the container
In the Docker tool window, right-click the container name, and then click Show processes (Show processes).
The output is rendered as an array of JSON on the Processes tab.
Attach the console to the output of the executable container
In the Docker tool window, right-click the container, and then click Attach.
The console connects to the output of the ENTRYPOINT process running within the container and is rendered on the connected console (Attached console) tab.
Thank you for your reading. the above is the content of "how the docker container interacts". After the study of this article, I believe you have a deeper understanding of how the docker container interacts with each other, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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: 252
*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.