码迷,mamicode.com
首页 > 其他好文 > 详细

docker常用命令

时间:2021-06-28 18:11:58      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:cto   manage   tis   man   sage   com   for   ror   传输   

Management Commands:
  app*        Docker App (Docker Inc., v0.9.1-beta3)
  builder     Manage builds
  buildx*     Build with BuildKit (Docker Inc., v0.5.1-docker)
  config      Manage Docker configs
  container   Manage containers
  context     Manage contexts
  image       Manage images
  manifest    Manage Docker image manifests and manifest lists
  network     Manage networks
  node        Manage Swarm nodes
  plugin      Manage plugins
  scan*       Docker Scan (Docker Inc.)
  secret      Manage Docker secrets
  service     Manage services
  stack       Manage Docker stacks
  swarm       Manage Swarm
  system      Manage Docker
  trust       Manage trust on Docker images
  volume      Manage volumes

Commands:
  attach      Attach local standard input, output, and error streams to a running container
  build       Build an image from a 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
  diff        Inspect changes to files or directories on a container‘s filesystem
  events      Get real time events from the server
  exec        Run a command in a running container
  export      Export a container‘s filesystem as a tar archive
  history     Show the history of an image
  images      List images
  import      Import the contents from a tarball to create a filesystem image
  info        Display system-wide information
  inspect     Return low-level information on Docker objects
  kill        Kill one or more running containers
  load        Load an image from a tar archive or STDIN
  login       Log in to a Docker registry
  logout      Log out from a Docker registry
  logs        Fetch the logs of a container
  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
  push        Push an image or a repository to a registry
  rename      Rename a container
  restart     Restart one or more containers
  rm          Remove one or more containers
  rmi         Remove one or more images
  run         Run a command in a new container
  save        Save one or more images to a tar archive (streamed to STDOUT by default)
  search      Search the Docker Hub for images
  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
  tag         Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
  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
  wait        Block until one or more containers stop, then print their exit codes

  attach 	将本地标准输入、输出和错误流附加到正在运行的容器
  build 	从 Dockerfile 构建镜像
  commit 	根据容器的更改创建一个新镜像
  cp 		在容器和本地文件系统之间复制文件/文件夹
  create 	创建一个新的容器
  diff 		检查对容器文件系统上的文件或目录的更改
  events 	从服务器获取实时事件
  exec 		在正在运行的容器中运行命令
  export 	将容器的文件系统导出为 tar 存档
  history 	显示镜像的历史记录
  images	显示所有镜像
  import 	从 tarball 导入内容以创建文件系统映像
  info 		显示系统范围的信息
  inspect	检查返回有关 Docker 对象的低级信息
  kill 		杀死一个或多个正在运行的容器
  load		从 tar 存档或 STDIN 加载镜像
  login 	登录到 Docker 注册表
  logout 	从 Docker 注册表中注销
  logs 		获取容器的日志
  pause 	暂停一个或多个容器内的所有进程
  port 		列出端口映射或容器的特定映射
  ps 		列出容器
  pull		从注册表中拉取镜像或存储库
  push 		将镜像或存储库推送到注册表
  rename	重命名 重命名容器
  restart 	重启一个或多个容器
  rm 		移除一个或多个容器
  rmi 		删除一个或多个镜像
  run		运行镜像
  save 		将一个或多个镜像保存到 tar 存档(默认流式传输到 STDOUT)
  search 	在 Docker Hub 中搜索镜像
  start 	启动一个或多个停止的容器
  stats 	显示容器资源使用统计的实时流
  stop 		停止一个或多个正在运行的容器
  tag 		创建一个引用 SOURCE_IMAGE 的标签 TARGET_IMAGE
  top 		显示容器正在运行的进程
  unpause 	取消暂停一个或多个容器中的所有进程
  update 	更新一个或多个容器的配置
  version 	显示 Docker 版本信息
  wait 		等待阻塞直到一个或多个容器停止,然后打印它们的退出代码

docker常用命令

标签:cto   manage   tis   man   sage   com   for   ror   传输   

原文地址:https://www.cnblogs.com/yzgblogs/p/14933017.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!