Docker通用命令映射管理命令 1.12 1.13 用途 attach container attach 附加到一个运行的容器 commit container commit 从一个容器的修改创建一个新的镜像 cp container cp 在容器与本地文件系统之间复制文件/文件夹 create container create 创建新的容器 diff container diff 检阅一个容器文件系统的修改 exec container exec 在运行的容器内执行命令 export container export 打包一个容器文件系统到tar文件 inspect container inspect 展示一个容器/镜像或者任务的底层信息 kill container kill 终止一个或者多个运行中的容器 logs container logs 获取容器的日志 ps container ls 展示容器列表 pause container pause 暂停一个或者多个容器的所有进程 port container port 展示容器的端口映射 rename container rename 重命名容器 restart container restart 重启容器 rm container rm 移除一个或多个容器 run container run 运行一个新的容器 start container start 启动一个或者多个容器 stats container stats 获取容器的实时资源使用统计 stop container stop 停止一个或多个运行容器 top container top 展示容器运行进程 unpause container unpause 解除暂停一个或多个容器的所有进程 update container update 更新一个或多个容器的配置 wait container wait 阻塞直到容器停止,然后打印退出代码 build image build 从一个Dockerfile构建镜像 history image history 展示镜像历史信息 import image import 用tar文件导入并创建镜像文件 load image load 从tar文件或者标准输入载入镜像 images image ls 展示镜像列表 pull image pull 从某个registry拉取镜像或者仓库 push image push 推送镜像或者仓库到某个registry rmi image rm 移除一个或多个镜像 save image save 打包一个或多个镜像到tar文件(默认是到标准输出) tag image tag 标记一个镜像到仓库 login login 登录Docker registry logout logout 从Docker registry登出 network network 管理Docker网络 node node 管理Docker Swarm节点 search search 在Docker Hub搜索镜像 service service 管理Docker services swarm swarm 管理Docker Swarm events system events 获取服务器的实时时间 info system info 展示整个系统信息 version version 显示Docker版本信息 volume volume 管理Docker volumes 参考 2017-02 Docker 1.13 管理命令 http://dockone.io/article/2059 2016-09 Restructure CLI Commands #26025 moby/moby#26025