Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to get Docker ClI working in Code Server? #7151

Unanswered
treverehrfurth asked this question in General
Discussion options

I have not been able to "install" or get docker cli working from within code server.
I primarily use vs code for docker development and am stuck unable to get even a "docker ps" working. I just get errors saying
"Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"

What's the best way to get docker cli into code server?

You must be logged in to vote

Replies: 2 comments 2 replies

Comment options

Are you running code-server in a Docker container and want it to access the host Docker instance? I think you can make this work if you mount /var/run/docker.sock. Such as docker run -v /var/run/docker.sock:/var/run/docker.sock codercom/code-server.

You must be logged in to vote
2 replies
Comment options

I am running it in a Docker container and I did get that to work previosuly, however I was hoping to install a standalone docker instance within the container (but I'm guessing that's not possible). So I created a standalone VM in Proxmox for just Code Server and passing through just like you listed.

Comment options

Ah, so you want a separate Docker inside Docker rather than controlling the host Docker? I believe this is possible but you will have to use a privileged container and use the docker:dind image (or base your image off it). https://hub.docker.com/_/docker

Comment options

With b-data's/my Jupyter Lab docker stacks 1 , I prefer using a docker:dind container.

Cross reference:

Footnotes

  1. subtag docker: includes docker-ce-cli, docker-buildx-plugin, docker-compose-plugin and docker-scan-plugin (amd64 only)

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /