Share via

How to install Docker (WSL) on Hyper-V?

Kay Gräf 80 Reputation points
2023-11-06T17:35:15.78+00:00

Hello to the forum,

When I want to install Docker or a Linux operating system in Hyper-V, the process regularly aborts.

The WSL environment does not work with Docker.

Docker then always starts with an error message; the research in the Docker FAQ has unfortunately not helped me. It also seems to me to be a settings problem in Hyper-V.

How can I solve the problem?

Many thanks for your support!

Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-12-29T07:20:00.0333333+00:00

    Hi Kay,

    Hope you're doing well.

    Here are some steps you can try to resolve the issue:

    1. Ensure that your Hyper-V environment is properly configured for virtualization.
    2. If the issue persists, you can try deleting all MobyLinuxVM virtual machines from Hyper-V Manager and restarting Docker.
    3. If the above steps do not work, you can try running Docker in Windows Containers by right-clicking on the Docker system tray icon and selecting "Switch to Windows Containers".

    Here are some relevant documents for you reference:

    Running Docker in Hyper-V - Tutorial (kenslearningcurve.com)

    Configure Docker in Windows | Microsoft Learn

    I hope this helps!

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.