侧边栏壁纸
博主头像
爱运维 博主等级

行动起来,活在当下

  • 累计撰写 197 篇文章
  • 累计创建 143 个标签
  • 累计收到 21 条评论

目 录CONTENT

文章目录

Docker help帮助翻译版

Administrator
2017-01-31 / 0 评论 / 0 点赞 / 2 阅读 / 0 字

中文版help

Commands:
attach Attach to a running container
# 当前 shell 下 attach 连接指定运行镜像
build Build an image from a Dockerfile
# 通过 Dockerfile 构造镜像
commit Create a new image from a container's changes
# 提交当前容器为新的镜像
cp Copy files/folders between a container and the local filesystem
# 从容器中拷贝指定文件或者目录到宿主机中
create Create a new container
# 创建一个新的容器,同 run,但不启动容器
diff Inspect changes on a container's filesystem
# 查看 docker 容器变化
events Get real time events from the server
# 从 docker 服务获取容器实时事件
exec Run a command in a running container
# 在已存在的容器上运行命令
export Export a container's filesystem as a tar archive
# 导出容器的内容流作为一个 tar 归档文件(对应 import ])
history Show the history of an image
# 展示一个镜像形成历史
images List images
# 列出系统当前镜像
import Import the contents from a tarball to create a filesystem image
# 从tar包中的内容创建一个新的文件系统映像(对应 export)
info Display system‐wide information
# 显示系统相关信息
inspect Return low‐level information on a container, image or task
# 显示系统相关信息
kill Kill one or more running container
# kill 指定 docker 容器
load Load an image from a tar archive or STDIN
# 从一个 tar 包中加载一个镜像(对应 save)
login Log in to a Docker registry.
# 注册或者登陆一个 docker 源服务器
logout Log out from a Docker registry.
# 从当前 Docker registry 退出
logs Fetch the logs of a container
# 输出当前容器日志信息
network Manage Docker networks
# 管理当前docker 网络环境
node Manage Docker Swarm nodes
# 管理当前docker swarm 环境中的节点
pause Pause all processes within one or more containers
# 暂停容器
port List port mappings or a specific mapping for the container
# 列出容器端口映像列表
ps List containers
# 列出容器列表
pull Pull an image or a repository from a registry
# 从docker镜像源服务器拉取指定镜像或者库镜像
push Push an image or a repository to a registry
# 推送指定镜像或者库镜像至docker源服务器
rename Rename a container
# 为容器改名
restart Restart a container
# 重启运行中的容器
rm Remove one or more containers
# 删除一个或多个容器
rmi Remove one or more images
# 删除一个或多个镜像(无容器使用该镜像才可删除,否则需删除相关容器才可继续或 ‐f 强
制删除)
run Run a command in a new container
# 创建一个新的容器并运行一个命令
save Save one or more images to a tar archive (streamed to STDOUT by
default)
docker run
将镜像运行在内存中,创建并运行容器
# 保存一个镜像为一个 tar 包(对应 load)
search Search the Docker Hub for images
# 在 docker hub 中搜索镜像(目前docker 1.12环境下不支持私有注册/仓库服务)
service Manage Docker services
# Docker swarm 环境下管理服务
start Start one or more stopped containers
# 启动容器
stats Display a live stream of container(s) resource usage statistics
# 查看容器运行状态
stop Stop one or more running containers
# 停止容器
swarm Manage Docker Swarm
# 管理 Docker swarm 环境初始化或加入swarm环境
tag Tag an image into a repository
# 给镜像创建新标签
top Display the running processes of a container
# 查看容器中运行的进程信息
unpause Unpause all processes within one or more containers
# 取消暂停容器
update Update configuration of one or more containers
# 更新一个或多个容器环境配置信息
version Show the Docker version information
# 查看 docker 版本号
volume Manage Docker volumes
# 管理Docker 卷环境
wait Block until a container stops, then print its exit code
# 截取容器停止时的退出状态值
Run 'docker COMMAND ‐‐help' for more information on a command.

0

评论区