How to manually install Docker on air-gapped Ubuntu systems with no access to the internet.
1.Ensure Docker is not previously installed
$ docker –version
2.Identify Ubuntu version.
You need this info to download the matching docker distribution
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Make note of Codename bionic
3. Download Docker distributions
Go to https://download.docker.com/linux/ubuntu/dists/ and navigate to /bionic folder since our Ubuntu version is bionic. Then browse to pool/stable and choose amd64 (in my case) and download all the below .deb files
- containerd.io is daemon
- docker-ce-cli is command line interface of docker community edition
- docker-ce is docker engine community edition. This requires docker-ce-cli
4. Move above files to Ubuntu server /tmp directory.
5. Install Docker Engine
$ sudo dpkg -i /tmp/docker-ce-cli_19.03.9_3-0_ubuntu-bionic_amd64.deb
$ sudo dpkg -i /tmp/containerd.io_1.3.7-1_amd64.deb
$ sudo dpkg -i /tmp/docker-ce_19.03.9_3-0_ubuntu-bionic_amd64.deb
Note: In case you experience dependency error that libseccomp2 required is >=2.4.0 however version 126.96.36.199.1ubuntu4 is found on the system, then follow my another article on fixing this dependency error.
6. Verify Docker installation
$ sudo docker –version