How to know docker container Id from a devcontainer ( docker-outside-of-docker )? #9750
Labels
containers
Issue in vscode-remote containers
feature-request
Request for new features or functionality
Milestone
Hi!
I have a script building a docker image and running it with the volume attached to a devcontainer.
Something like this:
So this $HOSTNAME contained the id of the devcontainer container id - which is very convenient.
However, when I have switched network mode for my devcontainer ( on purpose ) HOSTNAME became just docker-desktop.
This is not very convenient.
That's how I have thought - can't we have a dedicated variable ( also ok if it's filled from template variable in devcontainer.json ) keeping the actual container id it's running in currently.
What do you think of this>?
Thanks!
The text was updated successfully, but these errors were encountered: