Skip to content
An`s Weblog
Go back

Docker Deep Dive - Overview

Course Overview

Docker Deep Dive - A Cloud Guru Skill Level: intermediate Duration: 4.8+56 hours

Whether you’re completely new to Docker or just need a refresher, this course is designed for you! Covering Docker version 18.09.4, it provides a comprehensive guide to mastering containerization. You’ll learn how Docker works under the hood, how to install Docker Community Edition, and manage essential components like images, containers, networks, and volumes.

In this course, you’ll learn how to build custom Docker images using a Dockerfile, tag them properly, and push them to Docker Hub for sharing or deployment. You’ll explore how to deploy microservices using Docker Compose and manage containerized applications in Swarm Mode to create a production-ready environment. The course also teaches how to use Secrets to securely handle sensitive data like passwords. Throughout the journey, a series of hands-on labs will help reinforce your skills with practical, real-world experience.

Content Overview

Module

Module

Docker Environment

Docker Environment

Dockerfile

Dockerfile

Docker Image

Docker Image

Docker Container

Docker Container

Docker Networking

Docker Networking

Docker Storage

Docker Storage

Docker Orchestration

Docker Orchestration: Docker Compose and Docker Swarm 

Docker Security

Docker Security

Docker Command


1. Image

LệnhMô tả
docker image lsLiệt kê các images
docker image pull <image>Kéo image từ registry
docker image push <image>Đẩy image lên registry
docker image build -t <tag> .Build image từ Dockerfile
docker image inspect <image>Xem thông tin chi tiết image
docker image rm <image>Xóa image
docker image pruneXóa image không dùng
docker tag <image> <new_tag>Gán thêm tag cho image
docker save -o <file.tar> <image>Lưu image thành file
docker load -i <file.tar>Load image từ file

2. Container

LệnhMô tả
docker container run <options> <image>Tạo & chạy container
docker container start <id>Start container đã dừng
docker container stop <id>Stop container đang chạy
docker container restart <id>Restart container
docker container ls hoặc docker psLiệt kê containers đang chạy
docker container ls -aLiệt kê cả container dừng
docker container rm <id>Xóa container
docker container pruneXóa tất cả container đã dừng
docker container logs <id>Xem log container
docker container exec -it <id> <cmd>Thực thi lệnh trong container
docker container inspect <id>Xem chi tiết container
docker container top <id>Xem process trong container
docker container pause <id>Tạm dừng container
docker container unpause <id>Tiếp tục container
docker container statsXem tài nguyên container
docker container cp <container>:/path /local/pathCopy file từ container ra ngoài
docker attach <id>Gắn vào stdout/stderr của container
docker update --memory <limit> <id>Update tài nguyên container

3. Volume (Storage)

LệnhMô tả
docker volume lsLiệt kê volumes
docker volume create <name>Tạo volume
docker volume inspect <name>Xem thông tin volume
docker volume rm <name>Xóa volume
docker volume pruneXóa volume không dùng

4. Network

LệnhMô tả
docker network lsLiệt kê networks
docker network create <name>Tạo network
docker network inspect <name>Xem chi tiết network
docker network connect <network> <container>Gắn container vào network
docker network disconnect <network> <container>Ngắt container khỏi network
docker network rm <name>Xóa network
docker network pruneXóa networks không dùng

5. Registry

LệnhMô tả
docker loginĐăng nhập registry
docker logoutĐăng xuất registry
docker pull <image>Tải image
docker push <image>Đẩy image

6. Compose

LệnhMô tả
docker compose up -dChạy services từ docker-compose.yml
docker compose downDừng & xóa containers, networks, volumes
docker compose psLiệt kê các container
docker compose logsXem logs toàn bộ service
docker compose exec <service> <cmd>Thực thi lệnh trong service
docker compose buildBuild images từ docker-compose.yml

7. Swarm / Orchestration

LệnhMô tả
docker swarm initKhởi tạo swarm
docker swarm joinJoin vào swarm cluster
docker node lsLiệt kê nodes trong swarm
docker service createTạo service swarm
docker service lsLiệt kê services
docker service updateCập nhật service
docker service rm <id>Xóa service
docker stack deploy -c <file> <stack_name>Deploy stack
docker stack lsLiệt kê stacks
docker stack rm <stack>Xóa stack

8. System & Clean Up

LệnhMô tả
docker system dfXem dung lượng đang chiếm
docker system pruneXóa tất cả unused data
docker infoThông tin Docker
docker versionKiểm tra version
docker eventsStream các event hệ thống

9. Một số Flags quan trọng

FlagMô tả
-p <host>:<container>Map port
-v <volume>:/pathMount volume
-dRun container ở chế độ detached
-itTương tác với terminal
--rmXóa container khi stop
--name <name>Đặt tên container

Lab and Project

Mindmap

Mindmap Command

Docker Basic


Share this post:

Previous Post
Using Cloud Playground
Next Post
Installing Centos