20200915 初識 Docker

課堂資料

安裝 Docker

SET UP THE REPOSITORY

yum install -y yum-utils
yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo

INSTALL DOCKER ENGINE

安裝DOCKER引擎

yum install docker-ce docker-ce-cli containerd.io
SET UP THE REPOSITORY
INSTALL DOCKER ENGINE

驗證 DOCKER

啟動 DOCKER

課堂練習

讓 VM2 ( 第二台虛擬機 ) 透過 VM1 ( 第一台虛擬機 ) 進行廣告阻擋

安裝 adguard 步驟

1. Pull the Docker image

拉出Docker映像

2. Create directories for persistent configuration and data

創建用於持久配置和數據的目錄

檢查

刪除

檢查

刪除

檢查

檢查

刪除

3. Create and run the container

創建並運行容器

若是沒通到網路

連網測試

進入 resolv.conf,新增 namesever 8.8.8.8

進行連網測試

安裝註冊完ADguard會跳出儀表版畫面

Last updated

Was this helpful?