pause Pause all processes within oneormore containers port List port mappingsora specific mappingforthe container ps List containers pull Pull an imageora repositoryfroma registry push Push an imageora repositorytoa registry rename Rename a container restart Restart oneormore containers rm Remove oneor...
2-5)查看docker版本:docker info [root@server4 ~]# docker info Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 0 Server Version: 1.10.3 Storage Driver: devicemapper Pool Name: docker-253:0-1785801-pool Pool Blocksize: 65.54 kB Base Device Size: 10.74 GB Backing Filesystem: xfs D...
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 infor...
A self-sufficient runtime for containers Common Commands: run Create and run a new container from an image 从镜像创建并运行一个新的容器 exec Execute a command in a running container ps List containers build Build an image from a Dockerfile pull Download an image from a registry push Upload ...
Management Commands:container Manage containers image Manage images network Manage networks node Manage Swarm nodes plugin Manage plugins secret Manage Docker secrets service Manage services stack Manage Docker stacks swarm Manage Swarm system Manage Docker ...
Manage containers Commands: attach Attachlocalstandard 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 ...
Common Commands: run Create and run a new container from an image 运行 从图像创建并运行新容器 exec Execute a command in a running container 在正在运行的容器中执行命令 ps List containers 列出容器 build Build an image from a Dockerfile 从 Dockerfile 构建镜像 ...
See docker ps -ato view a list of all containers docker run [OPTIONS] IMAGE [COMMAND] [ARG...] 7、连接运行容器 docker exec The command started using docker execonly runs while the container’s primary process (PID 1) is running, and it is not restarted if the container is restarted. ...
This option is useful in situations where you are running Docker containers on Windows. The --isolation=<value> option sets a container's isolation technology. On Linux, the only supported is the default option which uses Linux namespaces. These two commands are equivalent on Linux: ...
Manage containers. Subcommands CommandDescription docker container attachAttach local standard input, output, and error streams to a running container docker container commitCreate a new image from a container's changes docker container cpCopy files/folders between a container and the local filesystem ...