Upvotes 0 Share PDF

Manually enable Docker for Windows prerequisites

When installing Docker for Windows, occasionally there are a few extra setup steps that Windows needs to run during setup. Even when run as an Administrator, the installer doesn't always allow these extra steps to run, and they need to be applied manually. Please be advised that this is intended for new installs as it will delete any existing containers or images.

For reference here are the prerequisites: https://docs.docker.com/docker-for-w...re-you-install

Warning: You will lose any Docker containers or images. As always, please run a full backup before making any changes.

These steps can be done through the Windows control panel or by using the below Powershell commands with elevated privileges:

  1. Uninstall Docker, Hyper-V, and, if installed, the Windows containers feature.
  2. Reboot.
  3. Enable Hyper-V:
    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
  4. Reboot.
  5. Enable the containers feature:
    `` Enable-WindowsOptionalFeature -Online -FeatureName Containers -All ```
  6. Install Docker for Windows.