Docker Desktop is not working in Multiuser Environment (Azure Virtual Desktop)

Kajal Kumar Saphui 20 Reputation points
2023-11-06T12:47:36.52+00:00

Docker-Desktop-error.PNG

Docker Failed to Initialize.

X Docker Desktop Is Already running.

Close it in other session to continue.

We need to use in AVD as multi user mode.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,038 questions
Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,841 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Dr. S. Gomathi 710 Reputation points MVP
    2023-11-07T03:36:32.2466667+00:00

    Hi Kajal,

    When you're encountering an error with Docker Desktop claiming it's already running in a multi-user environment like Azure Virtual Desktop, the key is to ensure Docker isn't being accessed simultaneously in another session. Here's how to handle it:

    Single Access: Docker Desktop isn't built for multiple sessions. Make sure you're not trying to access it from different user accounts or sessions at the same time.

    Session Check: Open Task Manager to see if Docker is active in your current session. If it is, shut it down. Also, check other sessions where it might be running.

    Close Other Sessions: If Docker is active in another session, you'll need to sign off from those sessions.

    Service Restart: Sometimes, the Docker service itself might need a refresh. You can restart it through the Windows Services panel or by using administrative commands in PowerShell.

    Reboot: If all else fails, restarting your computer can help reset the state of services like Docker.

    • Update Software: Keep your Docker Desktop and Azure Virtual Desktop updated. New releases might have fixes for the issues you're facing.

    It's important to note that Docker Desktop is primarily for single-user desktop setups. Multi-user environments come with their own set of challenges and may require special configurations. Always check the latest guidelines from official sources for the most accurate advice.

    If you find this solution helpful, please consider marking it as the accepted answer so it can assist others as well.

    Regards,

    Dr. Gomathi

    0 comments No comments

  2. Kajal Kumar Saphui 20 Reputation points
    2023-11-07T12:00:22.0233333+00:00

    https://docs.docker.com/desktop/vm-vdi/

    Note

    Support for running Docker Desktop on a virtual desktop is available to Docker Business customers, on VMware ESXi or Azure VMs only.


  3. KarishmaTiwari-MSFT 20,777 Reputation points Microsoft Employee Moderator
    2023-11-08T20:51:00.8866667+00:00

    @Kajal Kumar Saphui

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this!

    Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer. Accepted answers show up at the top, resulting in improved discoverability for others.

    Issue: Docker Desktop is not working in Multiuser Environment (Azure Virtual Desktop)

    Solution: Customer shared - Support for running Docker Desktop on a virtual desktop is available to Docker Business customers, on VMware ESXi or Azure VMs only.
    https://docs.docker.com/desktop/vm-vdi/


    If your issue remains unresolved or have further questions, please let us know in the comments how we can assist. We are here to help you and strive to make your experience better and greatly value your feedback.

    0 comments No comments

Your answer

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