Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] Linuxserver.io - Code-server

Featured Replies

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?

  • Replies 219
  • Views 90.7k
  • Created
  • Last Reply

Top Posters In This Topic

Most 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.

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? 

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?

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. 

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

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?

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}

 

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

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.

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

 

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.

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

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

  • 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. 

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

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

Can anyone else clarify if this is expected behaviour?

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

  • 3 weeks later...

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?

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

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?

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?

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

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.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.