Get the App
SLTechnology News&Howtos  ›  Servers  › 

Docker prune cleans up system garbage

Shulou Source: shulou.com Published: 2022-06-03 05:22:42 09月21日 Update

Docker is an open source application container engine that packages applications and dependencies into a portable image, deploys to a server and runs in a container container instance.

The three core concepts of Docker:

Image Image, apply and rely on packaged generated files, similar to installation packages.

Container Container, which is used to create an example of running an application by image.

The place where the Repository,Docker of the warehouse stores the image files.

Based on the Linux kernel, Docker allocates and isolates resources through operating system and virtual container calls to CGroup, Namespace and other system interfaces. The basic architecture is as follows:

Docker relies on system resources to run, and some garbage will be generated in the process of allocation and recycling, for example, docker rm deletion is not performed after docker stop container. Run docker system df to view the resource information. RECLAIMABLE is the recyclable ratio:

Add the option-v to display details: docker system df-v

Tips: run the prune command to clean up the garbage and release resources:

Docker system prune-volumes

The prune commands provided by Docker are organized as follows:

Tags: Container run resource image application system garbage command file allocation operating system three warehouse usage skill information kernel place instance engine skill Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS MySQL Linux Docker Microsoft