run 生成容器
docker run hello-world #生成一个hello-world的容器
images 查看镜像
docker images #查看本机有哪些镜像
docker images -a #查看本机镜像并显示中间镜像层
docker images -q #只显示当前所有镜像的ID
docker images -digests #显示镜像摘要信息
docker images -no-trunc #显示镜像完整信息
search 查询
docker search tomcat #查找github关于tomcat 的所有镜像信息
docker search -s 30 tomcat # 只查看点赞数超过30颗星的镜像
docker search -automated tomcat #只列出automated build(自动构建)的镜像
pull 下载
docker pull tomcat #下载最新的tomcat镜像
rmi 删除
docker rmi hello-world #删除hello-world镜像,不能删除正在使用的镜像
docker rmi -f hello-world #强制删除该镜像
docker rmi $(docker images -qa) #删除所有镜像