Skip to content
This repository has been archived by the owner on Feb 3, 2025. It is now read-only.

Latest commit

 

History

History
43 lines (25 loc) · 563 Bytes

File metadata and controls

43 lines (25 loc) · 563 Bytes

useful tricks for docker


shared folders

Removing some of the default shared folders can decrease CPU usage (e.g. remove /Volumes and /private).

Check storage with:

docker info |grep Storage

performance

In case of performance problems you can run:

docker run --rm=true -it --privileged --pid=host \
    <image name> /usr/bin/top

cleaning up

See disk space:

docker system df

Remove stopped containers, dangling images, the build cache, and unused networks:

docker system prune