[Description of eleven common commands Docker]

docker images

View locally stored Docker image

  • -a: List all the local mirror (image-containing intermediate layer, by default, the intermediate filtered image layer);

  • --digests: displays summary information mirror;

  • -f: Display image satisfies the conditions;

  • --format: Specifies the return value of the template file;

  • --no-trunc: display the full image information (unique ID is truncated generally mirror images); 

  • -q: Show only image ID

REPOSITORY: warehouse, a collection of images. The ubuntu is a large warehouse, the corresponding mirror is different versions

(REGISTRY warehouse, docker mirrored storage services, including an independent is a mirror image)

TAG: label, if you do not specify the use of latest labels generally mirror

IMAGE ID: Shown here is the ID truncated

# Display the complete image information 
Docker Images --no-the trunc 
# display only ID 
Docker Images -q

 

docker ps

Show currently running container

docker ps [-a][-l]

-a list all containers

-l Lists the newly created container

 

Guess you like

Origin www.cnblogs.com/CSgarcia/p/11347626.html