Permission denied trying to create a folder or clone a repo on Windows #16221
-
I am following the quickstart guide I was able to successfully install through the windows exe, and run it. It threw a few errors and warnings, but eventually I was able to create from Docker template, and build it. I was able to connect with local vscode, and with the browser based code server, but trying to actually do anything, for example, install packages or ipykernel for jupyter, or even creating a directory or cloning a repo is impossible to do through the terminal/extension or through the terminal CLI or through the terminal in my local vscode through SSH. Here are my logs. Any thoughts on why this might be? Do I have to install it on Linux instead or something? 2025-01-22 06:24:00.489 [erro] coderd.dbrollup: failed to rollup data ... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi, @subashc2023. Could you share the error you get inside your workspace and not the |
Beta Was this translation helpful? Give feedback.
-
coder@Docker:/home/subashc2023$ docker ps /home/subashc2023 is the default directory that it seems to have created for my workspace, as that is my username. I can run the "docker" command to see possible options, but I can't run the hello world, or even this ps command. mkdir fails as well - I tried to chmod -R a-rw . - this is not allowed I tried to sudo su, to change to root user but this still does not allow me to run docker ps or the hello world. Also the docker daemon is definitely running, because coder itself is running on this docker daemon right? Do I have to pass through the docker daemon to the container? Not sure what setup steps I am missing to get this working. |
Beta Was this translation helpful? Give feedback.
The Coder installation does not have the correct permissions to the docker socket. Also, please note that the default docker template does not provide you with a working docker installation inside the workspace. If you are looking to use docker inside the workspace, please check the docs on docker in workspace.
How is the Coder installed? Also, for more interactive help, you can join our Discord community. We will be able to help you debug this.