cli icon indicating copy to clipboard operation
cli copied to clipboard

Add option to get the info on running containers

Open Qwarctick opened this issue 1 year ago • 2 comments

Hello,

Could an option be added to obtain information on containers? A bit like docker inspect? In fact, it's something that could be “simple” to add, but it's necessary to have the real name of running containers.

This would simplify the development of third-party tools or make it easier to integrate devcontainers with other IDEs.

Qwarctick avatar Jun 10 '24 17:06 Qwarctick

Dev containers internally uses Docker, hence, you can still use the docker inspect command to find information on the containers.

In fact, it's something that could be “simple” to add, but it's necessary to have the real name of running containers.

Curious, won't the docker ps command help you with it?

samruddhikhandale avatar Jun 19 '24 00:06 samruddhikhandale

Curious, won't the docker ps command help you with it?

It is, but If I have multiple containers running on my system (which is the case for most pleople), I have to "manually" search for the one I want. As the cli can execute command in the devcontainer, I suppose it van return the name of the container.

Qwarctick avatar Jun 27 '24 11:06 Qwarctick