Docker 教程 - Docker 命令

Docker 教程 - Docker 命令

查看帮助

$ sudo docker help

Docker 命令

命令功能
attachAttach local standard input, output, and error streams to a running container
buildBuild an image from a Dockerfile
通过Dockerfile建立一个镜像
commitCreate a new image from a container’s changes
cpCopy files/folders between a container and the local filesystem
在本地文件系统和容器之间复制文件或文件夹
createCreate a new container
新建一个容器
diffInspect changes to files or directories on a container’s filesystem
eventsGet real time events from the server
execRun a command in a running container
在正在运行的容器中执行命令
exportExport a container’s filesystem as a tar archive
historyShow the history of an image
imagesList images
列出所有的镜像
importImport the contents from a tarball to create a filesystem image
infoDisplay system-wide information
inspectReturn low-level information on Docker objects
显示某个容器的信息
killKill one or more running containers
结束一个或多个正在运行的容器
loadLoad an image from a tar archive or STDIN
loginLog in to a Docker registry
logoutLog out from a Docker registry
logsFetch the logs of a container
pausePause all processes within one or more containers
portList port mappings or a specific mapping for the container
psList containers
列出所有容器
pullPull an image or a repository from a registry
pushPush an image or a repository to a registry
renameRename a container
重命名容器
restartRestart one or more containers
重启一个或多个容器
rmRemove one or more containers
删除一个或多个容器
rmiRemove one or more images
删除一个或多个镜像
runRun a command in a new container
在一个新的容器内执行命令
saveSave one or more images to a tar archive (streamed to STDOUT by default)
searchSearch the Docker Hub for images
Docker Hub查找镜像
startStart one or more stopped containers
启动一个或多个停止的容器
statsDisplay a live stream of container(s) resource usage statistics
stopStop one or more running containers
停止一个或多个容器
tagCreate a tag TARGET_IMAGE that refers to SOURCE_IMAGE
topDisplay the running processes of a container
显示一个容器正在运行的进程
unpauseUnpause all processes within one or more containers
updateUpdate configuration of one or more containers
更新一个或多个容器的配置
versionShow the Docker version information
显示Docker的版本信息
waitBlock until one or more containers stop, then print their exit codes
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值