Меню

Wsl 2 installation is incomplete windows 10 ошибка

При переходе во взрослую разработку рано или поздно мы сталкиваемся с лучшими практиками, со стандартами отрасли и таким образом узнаем о docker и хотим его использовать.

У меня компьютер на windows, действуем по привычной схеме, заходим на официальный сайт docker.com скачиваем дистрибутив, устанавливаем и… ничего не работает!!!

windows 10 wsl 2 installation is incomplete

wsl 2 installation is incomplete

Первое что я увидел при запуске докера “wsl2 installation is incomplete” к счастью microsoft знают что с этим делать и даже дают подробную инструкцию.

Инструкция по установке WSL2 на Windows 10

Запускаем PowerShell с правами админа и включаем компонент “Подсистема Windows для Linux”

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

После этого включаем необязательный компонент “Платформа виртуальных машин”

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Перезагружаем компьютер

Скачиваем и устанавливаем пакет обновления ядра linux

После этого необходимо поставить WSL 2 версией по умолчанию, для этого запускаем PowerShell и выполняем команду

wsl --set-default-version 2

Пробуем снова запустить Docker

Докер в windows 10

Ура все работает! Можем создавать контейнеры!

There’s two ways you can get it to work

  1. Using WSL 2 based engine.
  2. Without using WSL 2 based engine.

1 — Using WSL 2 based engine

In this page under «Download the Linux kernel update package».

Update Linux kernal package

and then Docker will start just fine

Docker running


2 — Without using WSL 2 based engine

If the goal is just to get Docker running, one can simply start by unchecking the box that says «Use the WSL 2 based engine». This can give the following error

Required Windows feature(s) not enabled: Hyper-V.

Required Windows feature(s) not enabled: Hyper-V.

Switch to WSL 2 based engine?

To enable Hyper-V:
https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v

So, in PowerShell 7 run the command

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V
-All

Hyper-V in Windows 10

which requires to Restart the computer to complete the operation. Then, once starting Docker again, you can get the following error

Docker failed to initialize

Docker failed to initialize

One or more errors occurred.

Eventually, just by clicking to start again, Docker will start running

Docker running

docker version

There’s two ways you can get it to work

  1. Using WSL 2 based engine.
  2. Without using WSL 2 based engine.

1 — Using WSL 2 based engine

In this page under «Download the Linux kernel update package».

Update Linux kernal package

and then Docker will start just fine

Docker running


2 — Without using WSL 2 based engine

If the goal is just to get Docker running, one can simply start by unchecking the box that says «Use the WSL 2 based engine». This can give the following error

Required Windows feature(s) not enabled: Hyper-V.

Required Windows feature(s) not enabled: Hyper-V.

Switch to WSL 2 based engine?

To enable Hyper-V:
https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v

So, in PowerShell 7 run the command

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V
-All

Hyper-V in Windows 10

which requires to Restart the computer to complete the operation. Then, once starting Docker again, you can get the following error

Docker failed to initialize

Docker failed to initialize

One or more errors occurred.

Eventually, just by clicking to start again, Docker will start running

Docker running

docker version

There’s two ways you can get it to work

  1. Using WSL 2 based engine.
  2. Without using WSL 2 based engine.

1 — Using WSL 2 based engine

In this page under «Download the Linux kernel update package».

Update Linux kernal package

and then Docker will start just fine

Docker running


2 — Without using WSL 2 based engine

If the goal is just to get Docker running, one can simply start by unchecking the box that says «Use the WSL 2 based engine». This can give the following error

Required Windows feature(s) not enabled: Hyper-V.

Required Windows feature(s) not enabled: Hyper-V.

Switch to WSL 2 based engine?

To enable Hyper-V:
https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v

So, in PowerShell 7 run the command

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V
-All

Hyper-V in Windows 10

which requires to Restart the computer to complete the operation. Then, once starting Docker again, you can get the following error

Docker failed to initialize

Docker failed to initialize

One or more errors occurred.

Eventually, just by clicking to start again, Docker will start running

Docker running

docker version

0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Wsaewouldblock resource temporarily unavailable sap ошибка
  • Ws1791 ошибка на актросе