In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Create and run a container
Docker run-it-- rm centos:latest bash
Run running Container
-it runs the container interactively
-- delete the container after rm exits the container
Centos:latest starts the container based on the image
Bash Command Interactive shell
two。 Exit the container
Exit
3. View the container
Docker ps view the container that is running
Docker ps-a view all containers
4. Delete Container
Docker rm [Container id]
5. View mirrored container data volume footprint
Docker system df
6. Enter the container
Docker exec-it [Container id] bash enters the container interactively (opens a new console operation)
7 . Start stop restart the container
Dcoker start [container id/ container name]
Dcoker stop [container id/ container name]
Dcoker restart [container id/ container name]
8. Delete Container
Docker container rm
Clean up all terminated containers
Docker container prune
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
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.