Blacklist Docker for Windows WSL2 Service Machines #4967

Closed
opened 2026-01-31 00:01:48 +00:00 by claunia · 7 comments
Owner

Originally created by @bushidocodes on GitHub (Nov 13, 2019).

Description of the new feature/enhancement

The latest version of Docker for Windows is adding a WSL2-based backend powered by a series of service machines. Terminal currently discovers these and adds them as options that the user can select. These should probably be blacklisted from being presented to the user in the short-term. I imagine a better long-term solution is for WSL2 to be able to use metadata to differentiate service-machines from user-created machines that I might want to log into.

image

  [
  ...
        {
            "guid": "{d8afdc0e-a636-5b68-89dd-50a9d0b54349}",
            "hidden": false,
            "name": "docker-desktop-data",
            "source": "Windows.Terminal.Wsl"
        },
        {
            "guid": "{570fcb8d-792c-5ac7-ab1f-5cfb2cdfdb99}",
            "hidden": false,
            "name": "docker-desktop",
            "source": "Windows.Terminal.Wsl"
        }
  ],

Proposed technical implementation details (optional)

Originally created by @bushidocodes on GitHub (Nov 13, 2019). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement The latest version of Docker for Windows is adding a WSL2-based backend powered by a series of service machines. Terminal currently discovers these and adds them as options that the user can select. These should probably be blacklisted from being presented to the user in the short-term. I imagine a better long-term solution is for WSL2 to be able to use metadata to differentiate service-machines from user-created machines that I might want to log into. ![image](https://user-images.githubusercontent.com/8700322/68788886-4bda5800-0612-11ea-8016-13a803b97f08.png) ```json [ ... { "guid": "{d8afdc0e-a636-5b68-89dd-50a9d0b54349}", "hidden": false, "name": "docker-desktop-data", "source": "Windows.Terminal.Wsl" }, { "guid": "{570fcb8d-792c-5ac7-ab1f-5cfb2cdfdb99}", "hidden": false, "name": "docker-desktop", "source": "Windows.Terminal.Wsl" } ], ``` <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. -->
Author
Owner

@DHowett commented on GitHub (Nov 13, 2019):

Ugh. I knew this day would come!

@benhill should we just, like, match the name or something? That seems bad.

@DHowett commented on GitHub (Nov 13, 2019): Ugh. I knew this day would come! @benhill should we just, like, match the name or something? That seems bad.
Author
Owner

@zadjii-msft commented on GitHub (Nov 13, 2019):

@benhillis is the right one 😉

@zadjii-msft commented on GitHub (Nov 13, 2019): @benhillis is the right one 😉
Author
Owner

@benhillis commented on GitHub (Nov 13, 2019):

I don't have a strong opinion, but a blacklist doesn't seem like a terrible idea.

@benhillis commented on GitHub (Nov 13, 2019): I don't have a strong opinion, but a blacklist doesn't seem like a terrible idea.
Author
Owner

@DHowett-MSFT commented on GitHub (Nov 13, 2019):

Sorry about tagging you into a random issue, wrong-Ben.

A disallow list doesn't sound terrible. I mean, it 100% does sound terrible, but it doesn't sound awful.

@DHowett-MSFT commented on GitHub (Nov 13, 2019): Sorry about tagging you into a random issue, wrong-Ben. A disallow list doesn't sound terrible. I mean, it 100% does sound terrible, but it doesn't sound _awful_.
Author
Owner

@benhillis commented on GitHub (Nov 13, 2019):

Semantics :)

I don't like it either, I just think it's really our only choice.

@benhillis commented on GitHub (Nov 13, 2019): Semantics :) I don't like it either, I just think it's really our only choice.
Author
Owner

@gmsantos commented on GitHub (Nov 13, 2019):

As a workaround, I set these profiles as hidden:

    {
        "guid": "{570fcb8d-792c-5ac7-ab1f-5cfb2cdfdb99}",
        "hidden": true,
        "name": "docker-desktop",
        "source": "Windows.Terminal.Wsl"
    },
    {
        "guid": "{d8afdc0e-a636-5b68-89dd-50a9d0b54349}",
        "hidden": true,
        "name": "docker-desktop-data",
        "source": "Windows.Terminal.Wsl"
    }

Maybe docker backend could be hidden as default...

@gmsantos commented on GitHub (Nov 13, 2019): As a workaround, I set these profiles as hidden: ``` { "guid": "{570fcb8d-792c-5ac7-ab1f-5cfb2cdfdb99}", "hidden": true, "name": "docker-desktop", "source": "Windows.Terminal.Wsl" }, { "guid": "{d8afdc0e-a636-5b68-89dd-50a9d0b54349}", "hidden": true, "name": "docker-desktop-data", "source": "Windows.Terminal.Wsl" } ``` Maybe docker backend could be hidden as default...
Author
Owner

@ghost commented on GitHub (Jan 14, 2020):

:tada:This issue was addressed in #4156, which has now been successfully released as Windows Terminal Preview v0.8.10091.0.🎉

Handy links:

@ghost commented on GitHub (Jan 14, 2020): :tada:This issue was addressed in #4156, which has now been successfully released as `Windows Terminal Preview v0.8.10091.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v0.8.10091.0) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4967