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 <containerId>:/file/path/within/container /host/path/target
docker info
网友评论