Docker learning experience

1. Introduction to docker components:
1. docker client: The client tool of docker is the main interface for users to use docker. The docker client communicates with docker deamon and returns the result to the user.
2. docker daemon: running on the host, the docker daemon process, users can interact with it through the docker client.
3. image: Image files are read-only and used to create containers. One image can run multiple containers. Image files can be created through dockerfile files or downloaded from docker hub/registry.
4. repository: public repository: docker hub/registry private repository: docker register
5. docker container: the running instance of docker, the container is an isolated environment.
====================================================================================
Second, docker common commands:

To view the mirror command use:

docker images

View the docker process:

docker ps

View container logs

docker logs -f container name or ID

Delete all containers. You cannot delete a running container. In this case, you must first stop it with the docker stop or docker kill command to delete it.

docker rm $(docker ps -a -q)

Subsequent updates"""". . .

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325059698&siteId=291194637