devcontainers / devcontainers/features

docker-from-docker: vscode soft-reloading on running any `docker` command

Open
#788 1 comment 0 reactions 0 assignees View on GitHub
needs-more-info
Dominant language
Shell
Stars
1.5k
Forks
621
Avg merge
2d 11h
Merged PRs (30d)
4

Description

I'm running a devcontainer with a custom debian `bullseye`-based image. I'm installing only the docker cli inside the container using `COPY --from=hub.docker.com/docker:dind /usr/local/bin/docker /usr/local/bin/`. I'm mounting the docker socket and authentication keys in the `~/.docker` folder.

`docker` commands inside the devcontainer are working fine, it's interacting with the remote host docker daemon and doing whatever I tell it, however everytime I run a `docker` command vscode _soft reloads_ the entire UI, as in the whole window refreshes. The terminal appears to continue in the background and nothing really breaks, it's just a very janky user experience if I have to wait 5-10s every time I run a docker command to wait for the UI to reload.

Is there any way of preventing the reload?

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.