Replies: 1 comment 3 replies
-
Hmm...I'm not a Docker expert but I feel like there should be a way to limit what the user has access to in the container, or maybe mount folders differently to get this functionality? @code-asher do you have any clever ideas? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
great job you make with code-server 👍
My goal is to provide my student a complet development environment up and ready quickly 👨🏻🎓
So, i use code-server in Docker with this image version :
codercom/code-server:4.9.1
I deploy it on Azure Container Instance (ACI)
BUT, I wonder if we could custom URL.
Let me explain :
coder
in/home/coder
./home/coder/workspace
. In this folder, student can create folder, file, git project, etc.WORKDIR /home/coder/workspace
so, when you go tohttp://localhost:8080/
code-server redirect tohttp://localhost:8080/?folder=/home/coder/workspace/
/home/coder
or/home
, nor even in/
on the file system./home/coder/workspace/
, but they code navigate or open coder-server in folder below (ex:/home/coder/workspace/foo
/home/coder/workspace/foo/bar
)My idea, to block navigation on the file system for coder-server, is to specify, In
ENV VAR
, likeWORKDIR
, the root folder :http://localhost:8080/?folder=/
code-server load this folder/home/coder/workspace/
http://localhost:8080/?folder=../../../
you are not allowed to go up in the folder 😅So :
Thank you !
Beta Was this translation helpful? Give feedback.
All reactions