From 4e7dfbe9e272bc3dbef584fd55483b8609fdc5e5 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Thu, 20 May 2021 16:07:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=20ubuntu=20=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E7=9A=84=E6=8B=89=E5=8F=96=E5=91=BD=E4=BB=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- Software/Applications/Docker/Docker_安装和使用.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Software/Applications/Docker/Docker_安装和使用.md b/Software/Applications/Docker/Docker_安装和使用.md index bd1f891..62225c9 100644 --- a/Software/Applications/Docker/Docker_安装和使用.md +++ b/Software/Applications/Docker/Docker_安装和使用.md @@ -86,7 +86,11 @@ Docker 的主要管理对象是镜像和容器,镜像是静态对象,保存 # 从 docker hub 上搜索镜像 docker search [option] # 从 https://hub.docker.com 拉取镜像 +docker pull [:tag] +# 如 +docker pull ubuntu:16.04 docker pull ubuntu:18.04 +docker pull ubuntu:20.04 # 运行某镜像并为之创建容器 docker run # 运行某镜像,为之创建容器,将宿主机端口影射到容器端口,并将宿主机的某目录挂载到容器的对应目录下