docker related commands

docker images 查看下载的image
docker ps -a 查看所有运行的container
docker ps -aq --filter ancestor=[container name or id] 查看运行中是否存在某个container
docker rm [container name or id] 清除container
docker rmi [image name or id] 清除image
docker system df -v 查看image和container占用清空
docker system prune 清空catch
docker logs [container name or id] 查看container log

docker logs -t [container id] >> [file path] 输出log到文件
docker exec -it [container id] /bin/bash
docker-mongo-backup
docker cp :/file/path/within/container /host/path/target
docker info

你可能感兴趣的:(docker related commands)