Closed danegsta closed 1 year ago
Hi @danegsta, thanks for flagging this. Could you share a diagnostic id when you get a moment ? https://docs.docker.com/desktop/troubleshoot/overview/#diagnose-from-the-terminal
Hi @christophermclellan this isn't an issue with a command failing, so there's no real relevant diagnostics; the issue is that a command that was supported by the CLI in Docker Desktop versions before 4.12.0 seems to have been removed in the 4.12.0 update and said command is used by the Visual Studio container tooling to validate whether a Docker Desktop install using the Hyper-V backend is correctly configured.
I believe there was a similar issue with the command being removed back in 2020: https://github.com/docker/for-win/issues/5625
Thanks for that @danegsta.
Hey @thaJeztah, I wonder whether you have any context on why %ProgramFiles%\Docker\Docker\DockerCli.exe" -SharedDrives
seems to no longer function in v4.12.0 of Desktop ? cc @sam-thibault
I think DockerCli.exe
here is a binary that Docker Desktop ships (it's not the docker
CLI, but named confusing).
Ah, sorry @thaJeztah.
@danegsta - we've got a ticket for this now and are assigning to a colleague to fix it for the next release of Desktop.
There hasn't been any activity on this issue for a long time.
If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale
comment.
If not, this issue will be closed in 30 days.
Prevent issues from auto-closing with a /lifecycle frozen
comment.
/lifecycle stale
This command was restored in Docker Desktop 4.14.0.
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
/lifecycle locked
Hey @danegsta, are you still relying on this CLI for Visual Studio?
Actual behavior
Running DockerCli.exe -SharedDrives outputs a warning
unknown shorthand flag: 'S' in -SharedDrives
and no shared drive listExpected behavior
Running DockerCli.exe -SharedDrives outputs a list of drives that have been shared
Information
Steps to reproduce the behavior
"%ProgramFiles%\Docker\Docker\DockerCli.exe" -SharedDrives
This particular change breaks a prerequisite check that Docker Tools for Visual Studio 2022 and 2019 use to determine if Docker file sharing was configured for a Hyper-V based Linux runtime.