docker 常见命令翻译

docker常见命令:
Management Commands:
builder Manage builds 管理构建

config Manage Docker configs 管理Docker配置
  create Create a config from a file or STDIN
  从文件或STDIN创建配置
  inspect Display detailed information on one or more configs
  显示一个或多个配置的详细信息
  ls List configs
  列出配置
  rm Remove one or more configs
  删除一个或多个配置

container Manage containers 管理容器
attach Attach local standard input, output, and error streams to a running container
将本地标准输入、输出和错误流附加到正在运行的容器上
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
创建新的容器
diff Inspect changes to files or directories on a container‘s filesystem
检查容器文件系统上文件或目录的更改
exec Run a command in a running container
在运行的容器中运行命令
export Export a container‘s filesystem as a tar archive
将容器的文件系统导出为tar存档
inspect Display detailed information on one or more containers
在一个或多个容器上显示详细信息
kill Kill one or more running containers
杀死正在运行中的容器
logs Fetch the logs of a container
docker container logs ID 查看运行历史记录
ls List containers
查看运行中的容器
-a 退出中的容器
pause Pause all processes within one or more containers
暂停一个或多个容器中的所有进程
port List port mappings or a specific mapping for the container
docker container port ID 查看所有映射的端口
prune Remove all stopped containers
移除所有已停止的容器
rename Rename a container
重命名容器
restart Restart one or more containers
重启容器
rm Remove one or more containers
docker container rm ID 删除容器
-f 强制删除运行中的容器
run Run a command in a new container
docker container run [选项][镜像名] [shell命令][参数]
-a, - attach list附加到STDIN,STDOUT或STDERR
-c, - cpu-shares int CPU份额(相对权重)
-d, - detach在后台运行容器并打印容器ID
-e, - env list设置环境变量
-h, - hostname string容器主机名
-i, - interactive尽管未连接,仍保持STDIN打开
-l, - label列表在容器上设置元数据
-m, - memory bytes内存限制
-p, - 发布列表将容器的端口发布到主机
-P, - publish-all将所有公开的端口发布到随机端口
-t, - try分配伪TTY
-u, - user string用户名或UID(格式:
-v, - volume list绑定装入卷
-w, - workdir string容器内的工作目录
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
docker container stop ID 停止容器
top Display the running processes of a container
docker container top ID 确定Docker容器的进程
unpause Unpause all processes within one or more containers
恢复容器中所有的进程
update Update configuration of one or more containers
更新一个或多个容器的配置
wait Block until one or more containers stop, then print their exit codes

engine Manage the docker engine 管理Docker引擎
activate Activate Enterprise Edition
激活企业版
check Check for available engine updates
检查可用的引擎更新
update Update a local engine
升级引擎

image Manage images
build Build an image from a Dockerfile
从Dockerfile构建映像
history Show the history of an image
显示镜像的历史记录
import Import the contents from a tarball to create a filesystem image
从tarball导入内容以创建文件系统映像
inspect Display detailed information on one or more images
显示一个或多个镜像的详细信息
load Load an image from a tar archive or STDIN
docker image load < Path/name.tar.gz 导入镜像
ls List images
查看镜像
prune Remove unused images
删除未使用的镜像
pull Pull an image or a repository from a registry
下载镜像
push Push an image or a repository to a registry
上传镜像
rm Remove one or more images
删除镜像
-f 强制删除
--no-prune 不要删除未标记的parents
save Save one or more images to a tar archive (streamed to STDOUT by default)
docker image save name >Path/name.tar.gz 打包保存镜像
tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
创建一个引用SOURCE_IMAGE的标记TARGET_IMAGE

network Manage networks
connect Connect a container to a network
将容器连接到网络
create Create a network
创建网络
disconnect Disconnect a container from a network
断开容器与网络的连接
inspect Display detailed information on one or more networks
显示一个或多个网络的详细信息
ls List networks
列出网络
prune Remove all unused networks
删除所有未使用的网络
rm Remove one or more networks
删除一个或多个网络

node Manage Swarm nodes
demote Demote one or more nodes from manager in the swarm
从集群中的管理器降级一个或多个节点
inspect Display detailed information on one or more nodes
显示一个或多个节点的详细信息
ls List nodes in the swarm
列出swarm中的节点
promote Promote one or more nodes to manager in the swarm
将一个或多个节点提升为集群中的管理器
ps List tasks running on one or more nodes, defaults to current node
列出在一个或多个节点上运行的任务,默认为当前节点
rm Remove one or more nodes from the swarm
从群中删除一个或多个节点
update Update a node
更新节点

plugin Manage plugins
disable Disable a plugin
禁用插件
enable Enable a plugin
启用插件
inspect Display detailed information on one or more plugins
显示一个或多个插件的详细信息
install Install a plugin
安装插件
ls List plugins
列出插件
push Push a plugin to a registry
将插件推送到注册表
rm Remove one or more plugins
删除一个或者多个插件
set Change settings for a plugin
更改插件的设置
upgrade Upgrade an existing plugin
升级现有插件

secret Manage Docker secrets
create Create a secret from a file or STDIN as content
创建密匙
inspect Display detailed information on one or more secrets
显示一个或多个密匙的详细信息
ls List secrets
列出密匙
rm Remove one or more secrets
删除密匙

service Manage services
create Create a new service
创建新服务
inspect Display detailed information on one or more services
列出一个或者多个服务信息
logs Fetch the logs of a service or task
获取服务或任务的日志
ls List services
列出服务
ps List the tasks of one or more services
列出一个或多个服务的任务
rm Remove one or more services
删除一个或多个服务
rollback Revert changes to a service‘s configuration
还原对服务配置的更改
scale Scale one or multiple replicated services
扩展一个或多个复制服务
update Update a service
升级服务

stack Manage Docker stacks 管理Docker栈
deploy Deploy a new stack or update an existing stack
部署新堆栈或更新现有堆栈
ls List stacks
列出堆栈
ps List the tasks in the stack
堆栈中的任务
rm Remove one or more stacks
删除一个或者多个堆栈
services List the services in the stack
列出堆栈中的服务

swarm Manage Swarm
ca Display and rotate the root CA
显示并循环根CA证书
init Initialize a swarm
初始化一个集群
join Join a swarm as a node and/or manager
以节点或管理器的形式加入群
join-token Manage join tokens
管理加入令牌
leave Leave the swarm
离开这个集群
unlock Unlock swarm
解锁集群
unlock-key Manage the unlock key
管理解锁键
update Update the swarm
更新集群

system Manage Docker 管理Docker
df Show docker disk usage
显示docker磁盘使用情况
events Get real time events from the server
从服务器获取实时事件
-f, --filter filter Filter output based on conditions provided
根据提供的条件过滤输出
--format string Format the output using the given Go template
使用给定的开始模板格式化输出
--since string Show all events created since timestamp
显示自时间戳以来创建的所有事件
--until string Stream events until this timestamp
显示到时间戳的事件

info Display system-wide information
显示整个系统的信息
prune Remove unused data
删除未使用的数据

trust Manage trust on Docker images
管理Docker镜像上的信任

volume Manage volumes 管理卷
create Create a volume
新建卷
inspect Display detailed information on one or more volumes
显示一个或多个卷的详细信息
ls List volumes
列出卷
prune Remove all unused local volumes
删除所有未使用的卷
rm Remove one or more volumes
删除一个或者多个卷

原文地址:https://www.cnblogs.com/yangjc6868/p/10073455.html

时间: 2024-08-29 23:19:00

docker 常见命令翻译的相关文章

Docker:Docker常见命令

本篇文章主要讲解Docker中一些常见的命令.本机演示环境使用的是Docker Desttop和PowerShell,使用CMD命令行工具也可以. 一.Docker容器信息 1.查看docker容器版本 使用下面的命令查看docker容器的版本信息: docker version 如下图所示: 2.查看docker容器信息 使用下面的命令查看docker容器信息 docker info 如下图所示: 3.查看docker容器帮助 有时候我们可能忘记了docker的某些命令,通过下面的命令,可以查

Docker常见命令

容器相关操作 docker create # 创建一个容器但是不启动它 docker run # 创建并启动一个容器 docker stop # 停止容器运行,发送信号SIGTERM docker start # 启动一个停止状态的容器 docker restart # 重启一个容器 docker rm # 删除一个容器 docker kill # 发送信号给容器,默认SIGKILL docker attach # 连接(进入)到一个正在运行的容器 docker wait # 阻塞到一个容器,直

docker常见命令大全

1.docker帮助说明 docker help 2.查看docker版本 docker version 3.显示docker系统的信息 docker info 4.检索image docker search image_name 5.拉取指定镜像到本地 docker pull imagename 6. 查看本地镜像 docker images 7.删除某个镜像 docker rmi id/name 8.以镜像imagename创建名为test的容器,并以后台模式运行,并做端口映射到宿主机222

Linux用户、用户管理的常见命令用法以及用户的权限管理

    用户和用户组的基本概念: Linux的用户是通过账号和密码登录到Linux系统的,而Linux主机并不会直接识别账号和密码,它只认识ID.那么Linux系统用户的ID分为以下类别: 系统管理员:root,0-UID 普通用户:1-65535-UID 普通用户有分为:系统用户和登录用户 系统用户:1-999-UID 登录用户:1000-65535-UID Linux用户组(GID)的分类: 管理员组:root,0(GID) 普通用户组:1-65535(GID) 普通用户组又分为: 系统组:

Docker run 命令的使用方法

[编者的话]在Docker中,run应该是用户使用最多的命令了,很多读者反馈不是很明白run命令的用法,而且相关的书籍.中文资料中对run命令的描述也不是非常完整,所以DockerOne组织翻译了Docker官方的文档,以飨读者.注意,本文基于最新的Docker 1.4文档翻译. Docker会在隔离的容器中运行进程.当运行 docker run命令时,Docker会启动一个进程,并为这个进程分配其独占的文件系统.网络资源和以此进程为根进程的进程组.在容器启动时,镜像可能已经定义了要运行的二进制

ansys 常见命令集合

APDL换行与续行- APDL规定每行72个字符 如果要写表达式A=C1+C2 (C1与C2都为表达式 可以用 B=C1 A=B+C2 将一行拆成两行来做但是如果不是表达式,而是输入一个命令参数过多的话,可以用续行命令RMORE,格式如下: RMORE, R7, R8, R9, R10, R11, R12 这个命令每次也只能输入6个参数,如果多于6个,可以重复使用RMORE就可以输入13-18,19-24等等.另外,于上面续行相应的是换行,一行命令太短可以使用多个命令共一行 $",没有双引号.这

Linux常见命令详解

1.Linux语法格式 命令 -参数 命令:是告诉干什么 命令后面有空格 -是固定 参数是告诉怎么干. 如果不需要参数,也不要-. 如果选项是个完整的单词,必须是--. 例如:杀鸡 杀是命令 怎么杀是参数. 如果有多个参数,可以分开写,也可以连起来写,同类项组合. 保留-,合并字母. 2.帮助命令 ls --help man(manual) ls(更多的是以手册形式来展现) whatis ls 当我们使用命令记不住的时候,只有记住开头,我们可以通过TAB键补全. 当我们只记住命令中间了部分的时候

Docker 清理命令集锦

杀死所有正在运行的容器 复制代码代码如下: docker kill $(docker ps -a -q) 删除所有已经停止的容器 复制代码代码如下: docker rm $(docker ps -a -q) 删除所有未打 dangling 标签的镜像 复制代码代码如下: docker rmi $(docker images -q -f dangling=true) 删除所有镜像 复制代码代码如下: docker rmi $(docker images -q) 为这些命令创建别名 复制代码代码如下

备起来!Linux安全运维常见命令小贴士

备起来!Linux安全运维常见命令小贴士 常用命令 1. 查找关键词并统计行数 cat 2015_7_25_test_access.log | grep "sqlmap" | wc -l 2. 删除含有匹配字符的行 sed -i '/Indy Library/d' 2015_7_25_test_access.log 3. 查找所有日志中的关键词 find ./ -name "*.log" |xargs grep "sqlmap" |wc -l 4