1. docker container *

1.1. 描述

管理容器(Container)相关的系列命令。对 docker 命令进行分类,容器相关的命令在这个子命令下,类似的还有 docker image

短命令和长命令功能一样。

参考表

长命令 短命令
docker container attach docker attach
docker container commit docker commit
docker container cp docker cp
docker container create docker create
docker container diff docker diff
docker container exec docker exec
docker container export docker export
docker container inspect docker inspect
docker container kill docker kill
docker container logs docker logs
docker container ls docker ls
docker container pause docker pause
docker container port docker port
docker container prune docker prune
docker container rename docker rename
docker container restart docker restart
docker container rm docker rm
docker container run docker run
docker container start docker start
docker container stats docker stats
docker container stop docker stop
docker container top docker top
docker container unpause docker unpause
docker container update docker update
docker container wait docker wait

1.2. 帮助

# docker container  help

Usage:  docker container COMMAND

Manage containers

Options:
      --help   Print usage

Commands:
  attach      Attach 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 on a container's filesystem
  exec        Run a command in a running container
  export      Export a container's filesystem as a tar archive
  inspect     Display detailed information on one or more containers
  kill        Kill one or more running containers
  logs        Fetch the logs of a container
  ls          List containers
  pause       Pause all processes within one or more containers
  port        List port mappings or a specific mapping for the container
  prune       Remove all stopped containers
  rename      Rename a container
  restart     Restart one or more containers
  rm          Remove one or more containers
  run         Run a command in a new container
  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
  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
  wait        Block until one or more containers stop, then print their exit codes

Run 'docker container COMMAND --help' for more information on a command.
Copyright © 温玉 2021 | 浙ICP备2020032454号 all right reserved,powered by Gitbook该文件修订时间: 2022-03-13 11:28:02

results matching ""

    No results matching ""