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:
- Uninstall Docker, Hyper-V, and, if installed, the Windows containers feature.
- Enable Hyper-V:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
- Enable the containers feature:
`` Enable-WindowsOptionalFeature -Online -FeatureName Containers -All ```
- Install Docker for Windows.