Skip to content

Instantly share code, notes, and snippets.

@martyngigg
Created April 21, 2022 16:34
Show Gist options
  • Save martyngigg/8060f6424ea0b58c388091c2b737ef80 to your computer and use it in GitHub Desktop.
Save martyngigg/8060f6424ea0b58c388091c2b737ef80 to your computer and use it in GitHub Desktop.
Windows Containers - Docker CLI

Here are some instructions on steps to setting up Windows-based Docker containers without Docker Desktop.

Notes

  • The latest version of the docker CLI binaries can be downloaded from https://download.docker.com/win/static/stable/x86_64/
  • Download and extract the above to "C:\Program Files\Docker" for all user access
  • Activate Windows containers and HyperV. Open powershell in administrator mode:
    • Enable-WindowsOptionalFeature -Online -FeatureName containers –All
    • Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V –All
    • Reboot
  • Resgister docker daemon can be registered as a service:
    • dockerd --register-service
  • Got to services.msc (start menu) and run the service, checking it starts...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment