Docker是一种容器化技术,广泛用于应用程序的开发、打包、部署和运行。Docker命令大全记录表是一份汇总了所有Docker命令的表格,方便用户查阅使用。
docker attach attach Attach local standard input, output, and error streams to a running container docker build build Build an image from a Dockerfile docker commit commit Create a new image from a container's changes docker cp cp Copy files/folders between a container and the local filesystem docker create create Create a new container docker diff diff Inspect changes to files or directories on a container's filesystem docker events events Get real time events from the server docker exec exec Run a command in a running container docker export export Export a container's filesystem as a tar archive docker history history Show the history of an image docker images images List images docker import import Import the contents from a tarball to create a filesystem image docker info info Display system-wide information docker inspect inspect Return low-level information on Docker objects docker kill kill Kill one or more running containers docker load load Load an image from a tar archive or STDIN docker login login Log in to a Docker registry docker logout logout Log out from a Docker registry docker logs logs Fetch the logs of a container docker pause pause Pause all processes within one or more containers docker port port List port mappings or a specific mapping for the container docker ps ps List containers docker pull pull Pull an image or a repository from a registry docker push push Push an image or a repository to a registry docker rename rename Rename a container docker restart restart Restart a container docker rm rm Remove one or more containers docker rmi rmi Remove one or more images docker run run Run a command in a new container docker save save Save one or more images to a tar archive (streamed to STDOUT by default) docker search search Search the Docker Hub for images docker start start Start one or more stopped containers docker stats stats Display a live stream of container(s) resource usage statistics docker stop stop Stop one or more running containers docker swarm swarm Manage Swarm docker tag tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE docker top top Display the running processes of a container docker unpause unpause Unpause all processes within one or more containers docker update update Update configuration of one or more containers docker version version Show the Docker version information docker wait wait Block until one or more containers stop, then print their exit codes
以上是Docker命令大全记录表中包含的所有命令及其用途,希望对用户使用Docker有所帮助。