docker常见命令翻译

yangjc6868 yangjc6868     2023-01-30     617

关键词:

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
删除一个或者多个卷


















































































































































































































































docker常见命令

docker常见命令查看版本docker-v查看详细版本dockerversion查看docker基本信息dockerinfo镜像相关的命令镜像仓库地址:https://hub.docker.com查看本地已经安装的镜像dockerimages搜索指定镜像dockersearch<image-name>#比如搜索centos镜像dockersearchcen... 查看详情

常见docker命令

docker服务相关启动docker服务systemctlstartdocker停止docker服务systemctlstopdocker重启docker服务systemctlrestartdocker查看docker服务状态systemctlstatusdocker开启开机启动do 查看详情

docker常用命令==平时使用常见命令(代码片段)

一、帮助命令dockerversion//docker版本dockerinfo//docker信息docker--help//docker所有命令二、镜像命令2.1dockerimagedockerimages//列举本地主机的所有镜像各个选项说明:REPOSITORY:表示镜像的仓库源TAG:镜像的标签IMAGEID:镜像IDCREATED&#x... 查看详情

docker常见命令大全

1.docker帮助说明dockerhelp2.查看docker版本dockerversion3.显示docker系统的信息dockerinfo4.检索imagedockersearchimage_name5.拉取指定镜像到本地dockerpullimagename6.查看本地镜像dockerimages7.删除某个镜像dockerrmiid/name 8.以镜像imagename创建名 查看详情

text常见的docker命令(代码片段)

查看详情

docker常见命令

容器相关操作dockercreate#创建一个容器但是不启动它dockerrun#创建并启动一个容器dockerstop#停止容器运行,发送信号SIGTERMdockerstart#启动一个停止状态的容器dockerrestart#重启一个容器dockerrm#删除一个容器dockerkill#发送信号给容器,默认... 查看详情

docker:docker常见命令(代码片段)

本篇文章主要讲解Docker中一些常见的命令。本机演示环境使用的是DockerDesttop和PowerShell,使用CMD命令行工具也可以。一、Docker容器信息1、查看docker容器版本使用下面的命令查看docker容器的版本信息:dockerversion 如下图所示:2... 查看详情

将 docker run 命令(tensorflow-serving)翻译成 docker-compose

】将dockerrun命令(tensorflow-serving)翻译成docker-compose【英文标题】:translatedockerruncommand(tensorflow-serving)intodocker-compose【发布时间】:2021-11-2211:00:01【问题描述】:这里是dockerrun命令:dockerrun-p8501:8501\\--nametfserving_classifier\\-eM 查看详情

docker基础入门安装以及常见命令(代码片段)

1、docker常见命令以及安装知识详解1、docker安装1、安装版本统一:Dockerversion18.03.0-ce,build0520e242、安装方式:使用dockerrepository安装3、sudoapt-getupdate4、InstallpackagestoallowapttousearepositoryoverHTTPSsudoapt-getinstallapt-trans 查看详情

常见docker命令-容器操作相关

dockerexec-在容器中执行命令以交互模式进入mynginx容器的bash控制台dockerexec-itmynginxbash以交互模式在mynginx容器中执行/test.shdockerexec-itmynginx/bin/bash/test.dockerps-列 查看详情

常见docker命令-本地镜像管理

查看镜像dockerimagesdockerrmi-删除镜像删除mynginx最新镜像dockerrmi-fmynginx:latestdockertag-标记本地镜像,将其归入某个仓库开发一个新地mynginx版本,将其打标为v1dockertagmynginxmynginx: 查看详情

[云原生专题-20]:容器-docker的常见命令(代码片段)

一、docker引擎的安装与启动安装dockeryuminstalldocker-ce启动docker:systemctlstartdocker停止docker:systemctlstopdocker重启docker:systemctlrestartdocker查看docker状态:systemctlstatusdocker开机启动ÿ 查看详情

docker删除常见命令

$dockerstop$(dockerps-a|grep"Exited"|awk‘print$1‘)//停止容器1b7067e19d6fa840f345c4239d74eff1c4e417d361107a21dd51ead96da7ad003260929495e713ab1bdf$dockerrm$(dockerps-a|grep"Exited"|awk‘print$1‘)//删除容器1b 查看详情

docker常见命令(随笔)(代码片段)

安装dockerdocker官网:https://www.docker.com/docker仓库官网:https://hub.docker.com/安装具体操作:1、安装工具包:yuminstall-yyum-utils如果不是root用户,就在前面加上sudo。2、配置阿里云仓库,可以用官方的,但是... 查看详情

docker常见故障

—Docker虚拟化故障—Docker虚拟化主要有三类故障:应用故障:应用执行状态与预期不一致。容器故障:无法正确创建、停止、更新容器等。集群故障:集群创建失败、更新失败、无法连接等。—Docker虚拟化故障排错&mdash... 查看详情

docker常见使用命令

1、安装dockeryuminstalldocker-y运行dockersystemctlstartdocker2、dockerpullubuntu:16.04docker拉取镜像为了使dockerpull速度更快,配置镜像加速器推荐安装1.11.2以上版本的Docker客户端sudomkdir-p/etc/dockersudotee/etc/docker/daemon.json<<-‘EOF‘"registry-mi... 查看详情

docker常见的骚操作(代码片段)

删除所有镜像:dockerrmi$(dockerimages-aq)dockerimages-aq是输出所有镜像id的命令,另外还有dockerps-aq等其他的-aq命令保存镜像到本地:dockersave-otinycore.dockertatsushid/tinycore:版本号可以不指定版本号,默认为last版本载入本地镜像:dockerload-i... 查看详情

linux常见英文报错中文翻译

Linux常见英文报错中文翻译(菜鸟必知)1.commandnotfound命令没有找到2.Nosuchfileordirectory没有这个文件或目录3.Permissiondenied权限不足4.Nospaceleftondevice磁盘没有剩余空间5.Fileexists文件已经存在6.Isadirectory这是1个目录7.Notadirectory不是1个目录... 查看详情