In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
What is the clear screen command for the docker container? When we use any program or application, a lot of useless files or garbage will be generated over a long time, so it is inevitable to clear the screen or delete it. Here are the delete commands commonly used in docker containers. I hope it will be helpful to you.
1. Kill all containers in running statu
Docker kill $(docker ps-Q)
two。 Delete all mirrors in the 'untagged/dangling' () state
Docker rmi $(docker images-Q-f dangling=true)
3. Delete all containers that have been stopped
Docker rm $(docker ps-a-Q)
4. Delete mirrors in all containers
Docker rmi $(docker images-Q)
5. Close all containers in docker command
Docker stop $(docker ps-a | awk'{print $1}'| tail-n + 2)
6. Delete all docker container commands
Docker rm $(docker ps-a | awk'{print $1}'| tail-n + 2)
7. Delete all docker mirrors
Docker rmi $(docker images | awk'{print $3}'| tail-n + 2)
Tail-n + 2 means to start reading from the second line
As a senior professional cloud computing service provider and cloud security service provider in the industry, it is committed to providing cloud servers for Internet enterprise users and enterprise users in traditional industries. Its products have the characteristics and advantages of "security and stability, easy to use, high service availability, high performance-to-price ratio" and are designed to be customized for enterprises to meet the needs of rich and diversified application scenarios.
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.