On any machine with internet access, do the following:
- Go to https://download.docker.com/linux/ubuntu/dists
- Choose your Ubuntu distribution (For 18.0.4 it would be
beaver/
)
- Navigate to
pool/stable/<processor architecture>
- Download the most recent version of each package
After transferring the .deb files to your offline Ubuntu machine/VM:
- In a terminal, navigate to the folder which contains your .deb files
- Execute
dpkg -i <package1> <package2> <package3>
in order to install the downloaded packages
- Verify that the service is running by switching to
/opt/
and executing systemctl status docker.service
After this you should be able to configure your docker installation and import packages via the docker load
command