本教程基于Ubuntu 22.04.4 LTS minimal版
安装网络相关工具
sudo apt install networkmanager
sudo apt install net-tools
sudo apt install iputils-ping
配置代理
export http_proxy="http://192.168.6.3:1082/"
export https_proxy="https://192.168.6.3:1082/"
取消设置
unset http_proxy
unset https_proxy
配置网络
如果遇到网卡接管问题可参考此教程
安装docker
官方安装文档:
https://docs.docker.com/engine/install/ubuntu/
方法二(国内可用):
sudo apt-get update && sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common && curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add - && sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable" && sudo apt-get update && sudo apt-get install -y docker-ce