In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "docker commonly used command summary", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "docker commonly used command summary" bar!
Attach Attach local standard input, output, and error streams to a running container # specified running image for attach connection under the current shell
Build Build an image from a Dockerfile # Custom Image through Dockerfile
Commit Create a new image from a container's changes # submit the current container as a new image
Cp Copy files/folders between a container and the local filesystem # copy the specified file or directory from the container to the host
Create Create a new container # creates a new container, same as run, but does not start the container
Diff Inspect changes to files or directories on a container's filesystem # View docker Container changes
Events Get real time events from the server # get container real-time events from docker service
Exec Run a command in a running container # runs commands on existing containers
Export Export a container's filesystem as a tar archive # Export Container's content stream as a tar archive file [corresponding to import]
History Show the history of an image # shows a history of image formation
Images List images # lists the current image of the system
Import Import the contents from a tarball to create a filesystem image # create a new file system image from the contents of the tar package [corresponding to export]
Info Display system-wide information # displays system-related information
Inspect Return low-level information on Docker objects # View container details
Kill Kill one or more running containers # kill specifies the docker container
Load Load an image from a tar archive or STDIN # loads an image from a tar package [corresponding save]
Login Log in to a Docker registry # register or log in to a docker source server
Logout Log out from a Docker registry # exits from the current Docker registry
Logs Fetch the logs of a container # outputs the current container log information
Pause Pause all processes within one or more containers # pause Container
Port List port mappings or a specific mapping for the container # View the internal source port of the container corresponding to the mapped port
Ps List containers # list containers
Pull Pull an image or a repository from a registry # pull the specified image or library image from the docker image source server
Push Push an image or a repository to a registry # push the specified image or library image to the docker source server
Rename Rename a container #
Restart Restart one or more containers # restart the running container
Rm Remove one or more containers # remove one or more containers
Rmi Remove one or more images # remove one or more images [this image can only be deleted without containers, otherwise you need to delete related containers before you can continue or-f force deletion]
Run Run a command in a new container # create a new container and run a command
Save Save one or more images to a tar archive (streamed to STDOUT by default) # Save an image as a tar package [corresponding to load]
Search Search the Docker Hub for images # search for images in docker hub
Start Start one or more stopped containers # launch Container
Stats Display a live stream of container (s) resource usage statistics #
Stop Stop one or more running containers # stop Container
Tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE # tags the image in the source
Top Display the running processes of a container # View the process information running in the container
Unpause Unpause all processes within one or more containers # Unpause the container
Update Update configuration of one or more containers #
Version Show the Docker version information # check the docker version number
Wait Block until one or more containers stop, then print their exit codes # intercepts the exit status value when the container stops
Thank you for your reading, the above is the content of the "summary of commonly used commands in docker". After the study of this article, I believe you have a deeper understanding of the summary of commands commonly used in docker, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.