Docker Container Command Reference: Comprehensive Guide to Management
The 'docker container --help' command displays the help menu for managing Docker containers. This command provides a detailed list of available options and commands for managing containers using the Docker CLI. Here are some of the common options and commands that are available:
Options: --help Print usage --version Print version information and quit
Commands: attach Attach local standard 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 diff Inspect changes to files or directories 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 one or more running 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 one or more paused containers update Update configuration of one or more containers wait Block until one or more containers stop, then print their exit codes
原文地址: https://www.cveoy.top/t/topic/necW 著作权归作者所有。请勿转载和采集!