镜像相关
docker imagesdocker history [image] 查看镜像构建过程。docker commit [container] [image] 容器构建镜像。#docker commit keen_williamson ubuntu-with-vidocker tag [image:tag] [image:tag] 改标签/重命名。docker build 从 Dockerfile 构建镜像。#docker build -t ubuntu-with-vi-dockerfile .docker pull/pushdocker rm/rmidocker search 可以搜索 Docker Hub 中的镜像。
容器相关
create 创建容器run 运行容器pause 暂停unpause 取消暂停继续运行容器stop 发送 SIGTERM 停止容器kill 发送 SIGKILL 快速停止容器start 启动restart 重启attach 到容器启动进程的终端logs 显示容器启动进程的控制台输出,-f 持续打印。rm 删除容器

