Docker System Events
Get real-time events logged by the Docker server. All changes made to containers or networks are captured here.
docker system events --since 60m
docker system events --since 2024-05-30
docker system events --filter '<key>=<value>'
docker system events --filter 'container=588a23dac085'
Disk Usage Metrics
Displays the actual size of the different objects managed by Docker.
docker system df
docker system df -v # verbose output
Copy Files
Ensure the destination directory exists on both sides before copying. You can also copy entire directories.
Host to Container
Container to Host
docker container cp <local-path> <container>:<container-path>
# Example
docker container cp /home/username/config.yaml apiapp:/etc/api/config.yaml
docker container cp <container>:<container-path> <local-path>
# Example
docker container cp apiapp:/etc/api/config.yaml /home/username/config.yaml