June 24, 20233 yr Author Hello. I have created a container using the following command: docker run -d --name='binhex-code-server' --net='bridge' -e TZ="Asia/Shanghai" -e HOST_OS="Unraid" -e HOST_HOSTNAME="Blueness-NAS" -e HOST_CONTAINERNAME="binhex-code-server" -e 'CERT_PATH'='' -e 'CERT_KEY_PATH'='' -e 'SELF_SIGNED_CERT'='no' -e 'BIND_CLOUD_NAME'='' -e 'ENABLE_STARTUP_SCRIPTS'='yes' -e 'PASSWORD'='XXXXX' -e 'UMASK'='000' -e 'PUID'='99' -e 'PGID'='100' -l net.unraid.docker.managed=dockerman -l net.unraid.docker.webui='https://[iP]:[PORT:8500]/' -l net.unraid.docker.icon='https://raw.githubusercontent.com/binhex/docker-templates/master/binhex/images/code-server-icon.png' -p '8500:8500/tcp' -v '/mnt/user/appdata/data':'/data':'rw' -v '/mnt/user/appdata/binhex-code-server':'/config':'rw' 'binhex/arch-code-server' However, I am unable to use the account sync feature in vscode. When I click on the "Accounts" button and select "Turn on cloud changes...", nothing happens. Currently, I am accessing the service through a Cloudflare tunnel. ThanksI think this is a limitation of code server, feel free to post the issue on the code server GitHub repo.Sent from my 22021211RG using Tapatalk
June 27, 20233 yr Hello, Does anyone know how to solve this php error in the container "PHP executable not found. Install PHP 7 and add it to your PATH or set the php.executablePath" ?
June 28, 20233 yr Author 13 hours ago, dianasta said: Hello, Does anyone know how to solve this php error in the container "PHP executable not found. Install PHP 7 and add it to your PATH or set the php.executablePath" ? As the error states you do not have PHP 7 installed, to fix it you can install this in the container by editing the script in /config/code-server/scripts/example-startup-script.sh, the script explains what to do, if you get stuck let me know.
June 28, 20233 yr 5 hours ago, binhex said: As the error states you do not have PHP 7 installed, to fix it you can install this in the container by editing the script in /config/code-server/scripts/example-startup-script.sh, the script explains what to do, if you get stuck let me know. Excellent thanks works great!
July 6, 20232 yr On 7/22/2022 at 11:38 AM, Masterwishx said: Is Some one using "docker" and "remote SSH" with this code server ? I thought I needed this... and I would to use this container... but I don't even need a container. I made a local .code-space file on my desktop computer that connects to UNRAID and launches Code remotely. I store the code-space on /boot and my repo is in /mnt/user so it's backed up with parity. You can execute and shell things right in Unraid through VS code. I can open VS code in Windows with my .code-space and it will remote to UNRAID and load all of my extensions. I don't need things like nodejs or perl, so I'm not concerned about the consistent environment, but if anyone else is just looking for a quick fix, this works easy.
September 23, 20232 yr text error warn system array login Created by... ___. .__ .__ \_ |__ |__| ____ | |__ ____ ___ ___ | __ \| |/ \| | \_/ __ \\ \/ / | \_\ \ | | \ Y \ ___/ > < |___ /__|___| /___| /\___ >__/\_ \ \/ \/ \/ \/ \/ https://hub.docker.com/u/binhex/ 2023-09-23 13:35:54.832351 [info] Host is running unRAID 2023-09-23 13:35:54.860969 [info] System information Linux 909f089a7aec 6.1.49-Unraid #1 SMP PREEMPT_DYNAMIC Wed Aug 30 09:42:35 PDT 2023 x86_64 GNU/Linux 2023-09-23 13:35:54.896690 [info] OS_ARCH defined as 'x86-64' 2023-09-23 13:35:54.932186 [info] PUID defined as '99' 2023-09-23 13:35:54.987635 [info] PGID defined as '100' 2023-09-23 13:35:55.045248 [info] UMASK defined as '000' 2023-09-23 13:35:55.076804 [info] Permissions already set for '/config' 2023-09-23 13:35:55.111988 [info] Deleting files in /tmp (non recursive)... 2023-09-23 13:35:55.148702 [warn] PASSWORD defined as 'code-server' is weak, please consider using a stronger password 2023-09-23 13:35:55.180505 [info] CERT_PATH not defined,(via -e CERT_PATH) 2023-09-23 13:35:55.212318 [info] CERT_KEY_PATH not defined,(via -e CERT_KEY_PATH) 2023-09-23 13:35:55.243994 [info] SELF_SIGNED_CERT defined as 'yes' 2023-09-23 13:35:55.275770 [info] BIND_CLOUD_NAME not defined,(via -e BIND_CLOUD_NAME) 2023-09-23 13:35:55.308039 [info] ENABLE_STARTUP_SCRIPTS defined as 'yes' 2023-09-23 13:35:55.561836 [info] Starting Supervisor... 2023-09-23 13:35:55,816 INFO Included extra file "/etc/supervisor/conf.d/code-server.conf" during parsing 2023-09-23 13:35:55,817 INFO Set uid to user 0 succeeded 2023-09-23 13:35:55,824 INFO supervisord started with pid 7 2023-09-23 13:35:56,827 INFO spawned: 'start-script' with pid 111 2023-09-23 13:35:56,832 INFO reaped unknown pid 8 (exit status 0) 2023-09-23 13:35:57,452 DEBG 'start-script' stderr output: [2023-09-23T20:35:57.451Z] error RSA PRIVATE KEY not found from openssl output: ---stdout--- -----BEGIN PRIVATE KEY----- Deleted this part. -----END PRIVATE KEY----- ---stderr--- code: 0 2023-09-23 13:35:57,452 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) 2023-09-23 13:35:57,464 DEBG fd 8 closed, stopped monitoring <POutputDispatcher at 23167912898640 for <Subprocess at 23167912899856 with name start-script in state RUNNING> (stdout)> 2023-09-23 13:35:57,464 DEBG fd 10 closed, stopped monitoring <POutputDispatcher at 23167913674960 for <Subprocess at 23167912899856 with name start-script in state RUNNING> (stderr)> 2023-09-23 13:35:57,465 WARN exited: start-script (exit status 1; not expected) 2023-09-23 13:35:57,465 DEBG received SIGCHLD indicating a child quit
November 29, 20232 yr On 02.08.2021 at 15:56, RusticPotato said: Посмотрите на расширение [Remote — SSH — Visual Studio Marketplace] https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh . Do you have this extension is working by adding openssh in pacman_packages ? i can find this ext
December 11, 20232 yr Hello! Not sure why, but docker isn't being installed even when added to "example-startup-script.sh" as pacman_packages="docker"
December 11, 20232 yr Author 3 hours ago, Droppisalt said: Hello! Not sure why, but docker isn't being installed even when added to "example-startup-script.sh" as pacman_packages="docker" it works for me, i do exactly that myself with this image, what makes you think its not installed?
December 11, 20232 yr When running `docker`, I get command not found: [nobody@aaa568c660eb appdata]$ docker bash: docker: command not found I also tried deleting my config file in appdata and re-installing the app but it still doesn't seem to install it. After adding pacman_packages="docker", I tried restarting the container and force updating it, but no luck.
December 11, 20232 yr Author 7 minutes ago, Droppisalt said: When running `docker`, I get command not found: [nobody@aaa568c660eb appdata]$ docker bash: docker: command not found I also tried deleting my config file in appdata and re-installing the app but it still doesn't seem to install it. After adding pacman_packages="docker", I tried restarting the container and force updating it, but no luck. ok please attach /config/supervisord.log
December 11, 20232 yr Author 3 minutes ago, Droppisalt said: Here you go! supervisord.log 15.73 kB · 0 downloads hmm interesting!, no sign of running any script, so where is the script located? it should be in /config/code-server/code-server/scripts/ and the script should be marked as executable, is this the case?.
December 11, 20232 yr Ah! wasn't executable... working now! I knew it'd be something I missed haha Thanks!
December 11, 20232 yr Author 4 minutes ago, Droppisalt said: Ah! wasn't executable... working now! I knew it'd be something I missed haha Thanks! glad its working, i had a look at my code and i actually do the chmod and chown for you and i just tested it by creating a blank file with a .sh extension and it did indeed work as expected, sorting out ownership and permissions, so i am baffled as to why this wasn't the case for you.
December 11, 20232 yr Author oh and btw if what you are trying to achieve is interaction with the docker containers running on unraid from within vs code then there are a couple more hoops to jump through. hoop 1. - create a container path to the docker socket - this is done by adding in a 'path' to your container, set the host and container path both to be the following:- /var/run/docker.sock hoop 2. - grant permissions to docker socket from vs code - this is done by adding the following to your startup script:- # permit user nobody access to docker socket chmod 777 '/var/run/docker.sock' thats it!, you can then remote into your containers, stop, start etc etc all within vs code.
December 11, 20232 yr Really have no idea either, hoping it's just a one-off. And thank you, needed that last part. 3 minutes ago, binhex said: hoop 2. - grant permissions to docker socket from vs code - this is done by adding the following to your startup script:- # permit user nobody access to docker socket chmod 777 '/var/run/docker.sock' thats it!, you can then remote into your containers, stop, start etc etc all within vs code. Other question, what is the default sudo password?
December 11, 20232 yr Author 9 minutes ago, Droppisalt said: Other question, what is the default sudo password? i would advise against using sudo, if you need to set things via root then do it through the startup script.
March 8, 20242 yr I was wondering if it is possible to use gpu's with this docker for example in order to test deep learning code?
July 15, 20241 yr Author 8 hours ago, sdballer said: I must be blowing it because I get a permission error when saving. Any pointers? When saving what to where?, screenshot and/or log would help.
July 15, 20241 yr 13 hours ago, binhex said: When saving what to where?, screenshot and/or log would help. Edited July 15, 20241 yr by sdballer
August 30, 20241 yr I'm trying the latest version and I'm getting this error message in the logs: 2024-08-30 16:22:27.671280 [info] Starting Supervisor... 2024-08-30 16:22:28,155 INFO Included extra file "/etc/supervisor/conf.d/code-server.conf" during parsing 2024-08-30 16:22:28,156 INFO Set uid to user 0 succeeded 2024-08-30 16:22:28,160 INFO supervisord started with pid 7 2024-08-30 16:22:29,165 INFO spawned: 'start-script' with pid 96 2024-08-30 16:22:29,166 INFO reaped unknown pid 8 (exit status 0) 2024-08-30 16:22:30,168 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) 2024-08-30 16:22:30,777 DEBG 'start-script' stdout output: [2024-08-30T20:22:30.772Z] info code-server 4.92.2 de65bfc9477f61bc22d0b1a23085d1f18bb25202 2024-08-30 16:22:30,778 DEBG 'start-script' stdout output: [2024-08-30T20:22:30.775Z] info Using user-data-dir /config/code-server/data 2024-08-30 16:22:30,790 DEBG 'start-script' stderr output: [2024-08-30T20:22:30.789Z] error EISDIR: illegal operation on a directory, read 2024-08-30 16:22:30,820 DEBG fd 8 closed, stopped monitoring <POutputDispatcher at 23124701636144 for <Subprocess at 23124713605888 with name start-script in state RUNNING> (stdout)> 2024-08-30 16:22:30,821 DEBG fd 10 closed, stopped monitoring <POutputDispatcher at 23124701809888 for <Subprocess at 23124713605888 with name start-script in state RUNNING> (stderr)> 2024-08-30 16:22:30,821 WARN exited: start-script (exit status 1; not expected) 2024-08-30 16:22:30,822 DEBG received SIGCHLD indicating a child quit I did verify that /config/code-server/data directory exists... I even tried calling other directories, but it's always the same error.
August 31, 20241 yr Has anyone gotten nvidia drivers working on this? I'm not an arch user and haven't been able to get nvidia drivers going. I'd like to do some ML stuff from this container. The normal flags aren't workign for me NVIDIA_VISIBLE_DEVICES=GPU-0db5fc02-ac0d-fb2a-e9b2-539cd10d7d89 NVIDIA_DRIVER_CAPABILITIES=all
October 10, 20241 yr I managed to set the container up and everything is working correctly - however i can't install the copilot extension. in the startup script i installed both code-marketplace and code-features but it is still not available.
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.