1. 在Linux Ubuntu环境下安装docker
搜索目前系统上已有的Docker 镜像
$ sudo docker search ubuntu
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
ubuntu Ubuntu is a Debian-based Linux operating sys… 16182 [OK]
websphere-liberty WebSphere Liberty multi-architecture images … 296 [OK]
open-liberty Open Liberty multi-architecture images based… 61 [OK]
... ...
下载指定版本的Ubuntu镜像:
$ sudo docker pull ubuntu:20.04
下载完成后,列出已下载的Docker镜像
$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu 20.04 14be0685b768 3 weeks ago 72.8MB
ubuntu <none> 626a42b93d93 6 weeks ago 72.8MB
hello-world latest 9c