docker cp <container_id>:/path/to/file /path/to/save
docker rmi -f $(docker images --filter "dangling=true" -q) docker image prune