features icon indicating copy to clipboard operation
features copied to clipboard

Docker debug command in `docker-outside-of-docker`

Open korverdev opened this issue 1 year ago • 8 comments

The docker debug command doesn't work within a dev container using docker-outside-of-docker. I'd love to see this feature supported within dev containers.

korverdev avatar May 23 '24 07:05 korverdev

Hi @samruddhikhandale , I have analysed this issue and found this:

Additional Debugging with Docker CLI While there isn't a docker debug command, you can increase the verbosity of Docker CLI commands by using the --debug or -D flag. For example:

docker --debug info

or

docker -D info

prathameshzarkar9 avatar Jul 09 '24 12:07 prathameshzarkar9

@prathameshzarkar9 The docker debug utility provides very different functionality compared to the commands you posted. Here's the documentation on this command.

korverdev avatar Jul 10 '24 21:07 korverdev

Hi @samruddhikhandale @korverdev , I observed this feature is available only in beta version of docker cli whereas we are using only released version for docker cli. Can you help us to know any other feature of devcontainers have this docker debug enabled? or beta version of docker cli installed in any of the features?

prathameshzarkar9 avatar Jul 11 '24 09:07 prathameshzarkar9

@prathameshzarkar9 I'm not sure I understand your question. Can you clarify what you want to know?

I wasn't aware this was considered a beta feature. It seems to come bundled all with Docker Desktop versions as far back as the start of the year and I get a nag encouraging me to use this feature when I stand up a dev container, so I was surprised to find it wasn't supported within a dev container. image

korverdev avatar Jul 11 '24 14:07 korverdev

Hi @samruddhikhandale , Need your intervention here. As this feature is not supported in any release of the docker cli. This feature is supported only in beta version and docker does not give any guarantee this will continue to support. They might discontinue this feature without any further notice.

can you help?

prathameshzarkar9 avatar Jul 12 '24 19:07 prathameshzarkar9

Hi @korverdev 👋

Image

Get a debug shell into any container or image with the new docker debug command (Beta).

As @prathameshzarkar9 mentioned and as highlighted in the release notes you've linked, the docker debug command is currently in Docker Beta.

From the Docker Blog:

To get started, run docker debug <Container or Image name> in the Docker Desktop CLI while logged in with your subscription account.

It appears the change isn't needed for the docker-outside-of-docker Feature; instead, users need to take action on their end to use this new command. I'm not sure how we can assist further since the availability is limited to your Docker subscription.

Let us know if anything is still unclear.

Also, once you have the ability to run docker debug, and if we can help support it in the CLI or our Features, don't hesitate to open a new issue. Thanks!

samruddhikhandale avatar Jul 12 '24 23:07 samruddhikhandale

@prathameshzarkar9 @samruddhikhandale That makes sense. Thanks for clarifying!

korverdev avatar Jul 13 '24 21:07 korverdev

@prathameshzarkar9 @samruddhikhandale docker debug is no longer in beta.

korverdev avatar Jul 31 '24 18:07 korverdev