Docker mind map

Time:2021-7-27

Docker mind map

Common related commands

Container lifecycle management

Docker run: create a new container and run a command

Docker start: start one or more containers that have been stopped

Docker stop: stops a running container

Docker restart: restart the container

Docker kill: kill a running container.

Docker RM: Deletes one or more containers.

Docker pause: pauses all processes in the container.

Docker unpause: recover all processes in the container.

Docker create: creates a new container without starting it

Docker exec: execute commands in the running container

Container operation

Docker PS: List containers

Docker inspect: get the metadata of the container / image.

Run the doc command in the container to view the parameters of the doc process.

Docker attach: connect to a running container.

Docker events: get real-time events from the server

Docker logs: get the logs of the container

Docker wait: block the operation until the container stops, and then print out its exit code.

Docker export: export the file system as a tar archive to stdout.

Docker port: list the port mapping of the specified container, or find the port that will be private_ Port NAT to public facing port.

Container rootfs command

Docker commit: create a new image from the container

Docker CP: used for copying data between containers and hosts.

Docker diff: check for changes to the file structure in the container.

Mirror warehouse

Docker login: log in to a docker image warehouse. If no image warehouse address is specified, the default is the official warehouse docker hub

Docker logout: log out of a docker image warehouse. If no image warehouse address is specified, the default is the official warehouse docker hub

Docker pull: pull or update the specified image from the image warehouse

Docker push: to upload the local image to the image warehouse, log in to the image warehouse first

Docker search: find images from docker hub

Local image management

Docker images: lists the local images.

Docker RMI: delete one or more local images.

Docker tag: mark the local image and classify it into a warehouse.

The docker build command is used to create an image using dockerfile.

Docker history: view the creation history of the specified image.

Docker save: saves the specified image as a tar archive file.

Docker load: imports the image exported using the docker Save command.

Docker import: creates an image from an archive file.

info|version

Docker Info: displays docker system information, including the number of images and containers..

Docker version: displays docker version information.

Recommended Today

VBS obtains the operating system and its version number

VBS obtains the operating system and its version number ? 1 2 3 4 5 6 7 8 9 10 11 12 ‘************************************** ‘*by r05e ‘* operating system and its version number ‘************************************** strComputer = “.” Set objWMIService = GetObject(“winmgmts:” _  & “{impersonationLevel=impersonate}!\\” & strComputer & “\root\cimv2”) Set colOperatingSystems = objWMIService.ExecQuery _  (“Select * from […]