[Support] Linuxserver.io - Code-server


180 posts in this topic Last Reply

Recommended Posts

  • Replies 179
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

We have not made a proxy confs for subdirectory. Didn't find an option to set a prefix for subfolder in code-servers documentation.

Root access in gui terminal is not very secure, the official container running as root is also not secure.   If you want to add packages to this container and you want them to be persistent,

Code server is hosting their own marketplace because the licenses prevent them from accessing the official Microsoft marketplace. There may be some issues with some of the extensions. You should repor

Posted Images

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.

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?

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

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}

 

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

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.

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

 

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.

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

Link to post
  • 2 weeks later...

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. 

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

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

Link to post
  • 3 weeks later...
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

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?

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?

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.

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.