Docker Learning notes-bulk deletion of stopped-running containers

Source: Internet
Author: User
Tags docker ps

The root user uses the following command

Docker RM ' Docker Ps-a|awk ' {print $} ' |grep [0-9a-z] '
1.docker RM supports multiple container IDs with • (tab above the key) to connect multiple containers for bulk deletion 2. The awk command will get all the container IDs of PS and print out the container ID of awk's data using Print 3. Use the grep command to delete, matching lowercase letters and numbers




This article is from the "Snoopy_honey" blog, make sure to keep this source http://sno0py.blog.51cto.com/8419234/1829128

Docker Learning notes-bulk deletion of stopped-running containers

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.