Docker Operation

Dockerの操作方法

コンテナ操作

コマンド
説明
Attach local standard input, output, and error streams to a running container
Create a new image from a container's changes
Copy files/folders between a container and the local filesystem
Create a new container
Inspect changes to files or directories on a container's filesystem
Execute a command in a running container
Export a container's filesystem as a tar archive
Display detailed information on one or more containers
Kill one or more running containers
Fetch the logs of a container
List containers
Pause all processes within one or more containers
List port mappings or a specific mapping for the container
Remove all stopped containers
Rename a container
Restart one or more containers
Remove one or more containers
Create and run a new container from an image
Start one or more stopped containers
Display a live stream of container(s) resource usage statistics
Stop one or more running containers
Display the running processes of a container
Unpause all processes within one or more containers
Update configuration of one or more containers
Block until one or more containers stop, then print their exit codes

イメージ操作

コマンド
説明
Show the history of an image
Import the contents from a tarball to create a filesystem image
Display detailed information on one or more images
Load an image from a tar archive or STDIN
List images
Remove unused images
Download an image from a registry
Upload an image to a registry
Remove one or more images
Save one or more images to a tar archive (streamed to STDOUT by default)
Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE