- 列出镜像
docker images - 拉取镜像(从Docker Hub)
docker pull fedora:latest docker pull devopsil/puppet - 查找镜像
docker search puppet - 登陆Docker Hub
docker login #登陆认证信息保存在$HOME/.docker/config.json - 用Docker commit命令创建镜像
docker commit 4aab3c33bc76 roubin/apache2 #安装apache后先停止容器,再commit docker commit -m="a new custom image" --author="roubin jame" 4aab3c33bc76 roubin/apache2:webserver - 删除镜像
docker rmi roubin/static_web #删除单个镜像 docker rmi roubin/static_web jamtur01/puppet #删除多个镜像 docker rmi `docker images -a -q` #删除所有镜像