Copy folder to Docker Container
docker cp folder/. ContainerID:/home
Start/Stop all of Containers
docker start $(docker ps -a -q)
docker stop $(docker ps -a -q)
Removing All Unused Objects
docker system prune
docker system prune --volumes
Remove Containers
docker container ls -a
docker container stop ContainerID
docker container rm ContainerID
docker container ls -a --filter status=exited --filter status=created
docker container prune
docker container prune --filter "until=12h"
Remove Images
docker image ls
docker image rm ImageID
docker image prune
docker image prune -a
docker image prune -a --filter "until=12h"
Remove Volumes
docker volume ls
docker volume rm VolumeID
docker volume prune
Remove Networks
docker network ls
docker network rm NetworkID
docker network prune
docker network prune -a --filter "until=12h"
沒有留言:
張貼留言