Skip navigation
Image of Ethernet cable

Install Docker without an Internet connection

Q. How do I install Docker on a machine with no Internet connection?

A. Normally to install containers it is installed directly from PSGallery but it requires Internet connectivity but what is you don't have Internet connectivity? The solution is to download the files on a machine that does have Internet connectivity, copy the files to the desired target and install.

Install-PackageProvider -Name DockerMsftProvider
Import-PackageProvider -Name DockerMsftProvider -Force

#List all Docker Packages available to see what versions are available
Find-Package -Provider DockerMsftProvider -AllVersions

#Save latest Docker Package to c:\docker
Save-Package -Name Docker -Path c:\docker 
ls c:\docker\*.zip

Now copy the zip file to the target system and extract docker.exe and dockerd.exe to the c:\windows\system32 folder.

Now register and start dockerd.exe.

dockerd --register-service
Start-Service Docker

[Container World  delivers real-world case studies from the cloud-native ecosystem, hands-on technical education, the best speakers and cutting-edge startups under one roof. Get your ticket.]

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish