Jump to content
linuxserver.io

[Support] Linuxserver.io - Code-server

174 posts in this topic Last Reply

Recommended Posts

What's the best way to map other shares within my Unraid configuration to this container so I can view/edit files saved in those shares?

Share this post


Link to post
2 hours ago, HALPtech said:

What's the best way to map other shares within my Unraid configuration to this container so I can view/edit files saved in those shares?

There aren't many options. Add a new path in the template for the share you want to access in the container.

Share this post


Link to post
19 hours ago, adambeck7 said:

`DOCKER_MODS` needs to be in Key. It should look like this

Screen Shot 2020-04-12 at 5.20.59 PM.png

I'm currently configuring the Python3 version of this - is it always going to take ~10 minutes to boot once I restart the container? 

Share this post


Link to post
1 hour ago, saarg said:

There aren't many options. Add a new path in the template for the share you want to access in the container.

I've added a new path via the template for the container but still don't see the option to select a file within it when opening a new file/folder from within the editor. Any thoughts?

Share this post


Link to post
1 hour ago, HALPtech said:

I'm currently configuring the Python3 version of this - is it always going to take ~10 minutes to boot once I restart the container? 

For me it was only the first time that took extra. 

Share this post


Link to post
4 hours ago, HALPtech said:

I'm currently configuring the Python3 version of this - is it always going to take ~10 minutes to boot once I restart the container? 

Not restarted but when recreated/updated

Share this post


Link to post

Adding a path to another Unraid share allows me to access that share via the terminal from within the container, but I'd like to be able to see it when I try to open a file (along with the workspace folder, etc.).

 

Is this possible?

Share this post


Link to post
1 hour ago, HALPtech said:

Adding a path to another Unraid share allows me to access that share via the terminal from within the container, but I'd like to be able to see it when I try to open a file (along with the workspace folder, etc.).

 

Is this possible?

Have you tried navigating to the directory and using 

code -r {filename}

 

Share this post


Link to post
3 hours ago, HALPtech said:

Adding a path to another Unraid share allows me to access that share via the terminal from within the container, but I'd like to be able to see it when I try to open a file (along with the workspace folder, etc.).

 

Is this possible?

Click on open folder, delete everything in the bar and put a forward slash `/` in there, it will let you browser the entire container contents including other mapped folders

Share this post


Link to post
On 4/14/2020 at 10:55 AM, adambeck7 said:

Have you tried navigating to the directory and using 


code -r {filename}

 

It isn't recognizing 'code' as a valid command in the terminal. I'm wondering if something isn't installed that should be.

Share this post


Link to post
3 minutes ago, HALPtech said:

It isn't recognizing 'code' as a valid command in the terminal. I'm wondering if something isn't installed that should be.

Yea I wasn't sure that'd work. Right above your comment aptalca said to do it this way: Click on open folder, delete everything in the bar and put a forward slash `/` in there, it will let you browser the entire container contents including other mapped folders

 

Share this post


Link to post
1 hour ago, adambeck7 said:

Yea I wasn't sure that'd work. Right above your comment aptalca said to do it this way: Click on open folder, delete everything in the bar and put a forward slash `/` in there, it will let you browser the entire container contents including other mapped folders

 

That worked.

 

Do you know why I can't use the code command? I'm new to this and a friend who was helping me out also referenced the code command, so now I'm curious what it is and why I don't have it.

Share this post


Link to post

Hey, 

 

is anyone else getting super high CPU usage from code-server? 

 

Any idea how to find out how what is causing CPU usage in dockers?

 

Cheers

Danny

Share this post


Link to post
5 hours ago, HALPtech said:

That worked.

 

Do you know why I can't use the code command? I'm new to this and a friend who was helping me out also referenced the code command, so now I'm curious what it is and why I don't have it.

Because it's not a desktop os, it's a docker container

Share this post


Link to post

I'm assuming this is maybe expected behaviour, but the session is not stored at all. Is there anyway to work around that?

I.e. I open a directory through the vscode tab, maybe run a npm script and open a few files. If I then close that browser tab and open it back up all the layout/ terminal scripts are lost/no longer running. I want it so that I can keep the session regardless if I close the tab, or open the vscode tab window on another PC. 

Share this post


Link to post
3 hours ago, mintjberry said:

I'm assuming this is maybe expected behaviour, but the session is not stored at all. Is there anyway to work around that?

I.e. I open a directory through the vscode tab, maybe run a npm script and open a few files. If I then close that browser tab and open it back up all the layout/ terminal scripts are lost/no longer running. I want it so that I can keep the session regardless if I close the tab, or open the vscode tab window on another PC. 

That's an upstream thing. In earlier versions it was stored, including the last opened folder. Newer versions don't store anything. I don't like it either

Share this post


Link to post

If I open the same folder again, it opens the files I had opened before closing the browser. I think.....

Share this post


Link to post
52 minutes ago, mintjberry said:

Can anyone else clarify if this is expected behaviour?

The folder is not remembered, but if you open the folder again, the open files are remembered

Share this post


Link to post

I am trying to set up a Reverse Proxy with letsencrypt (letsencrypt works with other containers) and when I set up the proxy-conf I get a 502 Bad Gateway error.

Am I missing a step in setting up the Reverse Proxy?

Share this post


Link to post
4 hours ago, bdzschau said:

I am trying to set up a Reverse Proxy with letsencrypt (letsencrypt works with other containers) and when I set up the proxy-conf I get a 502 Bad Gateway error.

Am I missing a step in setting up the Reverse Proxy?

502 means letsencrypt can't reach code-server. You likely forgot to put them in the same user defined bridge network

Share this post


Link to post
2 minutes ago, aptalca said:

502 means letsencrypt can't reach code-server. You likely forgot to put them in the same user defined bridge network

They were both under the same user defined bridge network. Do I have to change any files in code server?

Share this post


Link to post
3 minutes ago, bdzschau said:

They were both under the same user defined bridge network. Do I have to change any files in code server?

Did you change anything in the proxy conf?

Share this post


Link to post
Just now, saarg said:

Did you change anything in the proxy conf?

I took off the .sample from the end of the file and changed the port since port 8443 was in use

Share this post


Link to post
Just now, bdzschau said:

I took off the .sample from the end of the file and changed the port since port 8443 was in use

It didn't say to edit anything, so you shouldn't have done that. Set it back to the default port as it's not using the mapped port, but the container port.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.