Ubuntu22.04离线安装docker

Ubuntu22.04离线安装docker

carry@carryvm:~/deploy/docker_deploy$ tree -L 2
.
├── pkgs
│   ├── containerd.io_1.6.8-1_amd64.deb
│   ├── docker-ce-cli_24.0.5-1~ubuntu.22.04~jammy_amd64.deb
│   ├── docker-ce_24.0.5-1~ubuntu.22.04~jammy_amd64.deb
│   ├── iptables_1.8.7-1ubuntu5.1_amd64.deb
│   ├── libip6tc2_1.8.7-1ubuntu5.1_amd64.deb
│   ├── libnetfilter-conntrack3_1.0.9-1_amd64.deb
│   ├── libnfnetlink0_1.0.1-3build3_amd64.deb
│   └── libnftnl11_1.2.1-1build1_amd64.deb
└── readme.txt

没有就下载包

  89  sudo apt download docker-ce
  95  sudo apt download iptables
  97  sudo apt download however
  102  sudo apt-get install --download-only docker-ce
  103  sudo apt download libip6tc2
  104  sudo apt download libnetfilter-conntrack3
  105  sudo apt download libnfnetlink0
  106  sudo apt download libnftnl11

安装

sudo dpkg -i containerd.io_1.6.8-1_amd64.deb
sudo dpkg -i docker-ce-cli_24.0.5-1~ubuntu.22.04~jammy_amd64.deb
sudo dpkg -i lib*
sudo dpkg -i iptables_1.8.7-1ubuntu5.1_amd64.deb
sudo dpkg -i docker-ce_24.0.5-1~ubuntu.22.04~jammy_amd64.deb

docker version

你可能感兴趣的:(docker,容器,运维)