1.下载3个docker离线安装包,下载网址:
https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/
2.把3个离线安装包拷贝到ubuntu本地执行以下命令
sudo dpkg -i containerd.io_1.4.6-1_amd64.deb
sudo dpkg -i docker-ce-cli_20.10.7~3-0~ubuntu-xenial_amd64.deb
sudo dpkg -i docker-ce_20.10.7~3-0~ubuntu-xenial_amd64.deb

3.启动doakcer
sudo systemctl start docker

4.查看docker状态
sudo systemctl status docker
5.设置Docker的开机自启动
sudo systemctl enable docker.service
6.查看开机自启动是否添加成功
sudo systemctl list-unit-files |grep docker








![[HGAME 2023 week1]Classic Childhood Game](https://i-blog.csdnimg.cn/direct/6198f71293fd473ea58d8963daaedd22.png)











![[Meachines] [Easy] Blue MS17-010永恒之蓝](https://img-blog.csdnimg.cn/img_convert/ac1de7777a3892c01991bff57e54bf89.jpeg)