Please enable JavaScript.
Coggle requires JavaScript to display documents.
Docker - Coggle Diagram
Docker
-
NETWORK :star:
-
Communication scenarios
host <=> containers
via configured port when running container
e.g: docker run --name CONTAINER_NAME -p 8080:80 IMAGE_NAME => map port 8080 from host to port 80 of container
=> from host, we can send request to url localhost:8080
container <=> container
Steps:
- create network by: docker network create my-network
- connect containers to created network by: docker run --name CONTAINER_NAME --network my-network -d IMAGE_NAME
- Other containers can communicate to other container by CONTAINER_NAME:LISTENING_PORT
-
-
custom, user-defined networks
-
-
-
docker volumn :star:
-
volumn (docker control)
-
docker volumn inspect [volumn_name]
=> check information of volumn,actual saving location
-
Anonymous volume, name will be created by docker
Note Docker on Window
The backend technology can be:
- Hyper-V: the microsoft virtualization
- WSL: window subsytem for linux
Docker should run with admin user, otherwise many issues will happen
-
-
-
-
-
Components:
- Docker engine: the process/daemon which run containers
- Docker client: cli to manipulate the docker engine, container, image
- Docker image: the image which encapsulate the application
- docker container: the running instance of docker image
- docker desktop: GUI application instead of docker client cli
- Docker registry: the remote place where images store: docker hub, azure image registry