Skip to content
An`s Weblog
Go back

Docker Architecture

sudo dnf install -y net-tools nano wget

Docker sử dụng kiến trúc kiểu client-server (khách-chủ):

Hai thành phần này giao tiếp với nhau thông qua REST API, có thể kết nối:

1. Docker Daemon (dockerd)

2. Docker Client (docker CLI)

docker container run

3. Docker Registry – Nơi lưu trữ image

docker pull nginx
docker push nginx:<tag>

4. Docker Image

Các lệnh thao tác với Docker Image:

docker image ls
docker build -t <image_name>:<tag> <path_to_dockerfile>
docker pull <image_name>:<tag>
docker rmi <image_id>
docker image inspect <image_id>
docker image history <image_id>
docker tag <image_id> <repository>:<tag>
docker push <repository>:<tag>

5. Container – Runtime Instance của image

Các lệnh thao tác với Docker Image:


Share this post:

Previous Post
The Docker Engine
Next Post
Docker Commands