saarg Posted January 26, 2021 Share Posted January 26, 2021 8 hours ago, muwahhid said: Started studying golang, used ide vscode. How can you install a golang in a docker so that when you upgrade, it doesn't disappear? Read the readme section called docker mods. Quote Link to comment
muwahhid Posted January 26, 2021 Share Posted January 26, 2021 4 hours ago, saarg said: Read the readme section called docker mods. It's a pity it's so complicated. I didn't really know how to do it. I need to take three steps in docker terminal. 1. Download file: go1.15.7.linux-amd64.tar.gz 2. Unpack: tar -C /usr/local -xzf go1.15.7.linux-amd64.tar.gz 3. And export: export PATH=$PATH:/usr/local/go/bin Quote Link to comment
saarg Posted January 26, 2021 Share Posted January 26, 2021 2 hours ago, muwahhid said: It's a pity it's so complicated. I didn't really know how to do it. I need to take three steps in docker terminal. 1. Download file: go1.15.7.linux-amd64.tar.gz 2. Unpack: tar -C /usr/local -xzf go1.15.7.linux-amd64.tar.gz 3. And export: export PATH=$PATH:/usr/local/go/bin What? I suggest you go back to the readme and read it again. What you describe above has nothing to do with our docker mods. Quote Link to comment
muwahhid Posted January 26, 2021 Share Posted January 26, 2021 6 hours ago, saarg said: What? I suggest you go back to the readme and read it again. What you describe above has nothing to do with our docker mods. Did so, all ok, thank you. Quote Link to comment
Michel Amberg Posted February 17, 2021 Share Posted February 17, 2021 How do you enable tab completion in the terminal? Quote Link to comment
dave Posted March 18, 2021 Share Posted March 18, 2021 (edited) Hello, I am having trouble getting this container to run on a different port. See here I am trying to set port 443 as the host port: Then, during docker run, it appears to be set correctly: But then it still starts on the default port: And the logs show the same default port being used, not the set one: ------------------------------------- _ () | | ___ _ __ | | / __| | | / \ | | \__ \ | | | () | |_| |___/ |_| \__/ Brought to you by linuxserver.io ------------------------------------- To support LSIO projects visit: https://www.linuxserver.io/donate/ ------------------------------------- GID/UID ------------------------------------- User uid: 99 User gid: 100 ------------------------------------- [cont-init.d] 10-adduser: exited 0. [cont-init.d] 30-config: executing... [cont-init.d] 30-config: exited 0. [cont-init.d] 99-custom-scripts: executing... [custom-init] no custom files found exiting... [cont-init.d] 99-custom-scripts: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. starting with no password [2021-03-18T16:21:31.781Z] info code-server 3.9.1 e0203f2a36c9b7036fefa50eec6cf8fa36c5c015 [2021-03-18T16:21:31.782Z] info Using user-data-dir ~/data [2021-03-18T16:21:31.798Z] info Using config file ~/.config/code-server/config.yaml [2021-03-18T16:21:31.798Z] info HTTP server listening on http://0.0.0.0:8443 [2021-03-18T16:21:31.798Z] info - Authentication is disabled [2021-03-18T16:21:31.798Z] info - Not serving HTTPS How can I get this running on port 443? Is there a limitation where it cannot run on 443/HTTPS? Edited March 18, 2021 by dave Quote Link to comment
saarg Posted March 18, 2021 Share Posted March 18, 2021 4 hours ago, dave said: Hello, I am having trouble getting this container to run on a different port. See here I am trying to set port 443 as the host port: Then, during docker run, it appears to be set correctly: But then it still starts on the default port: And the logs show the same default port being used, not the set one: ------------------------------------- _ () | | ___ _ __ | | / __| | | / \ | | \__ \ | | | () | |_| |___/ |_| \__/ Brought to you by linuxserver.io ------------------------------------- To support LSIO projects visit: https://www.linuxserver.io/donate/ ------------------------------------- GID/UID ------------------------------------- User uid: 99 User gid: 100 ------------------------------------- [cont-init.d] 10-adduser: exited 0. [cont-init.d] 30-config: executing... [cont-init.d] 30-config: exited 0. [cont-init.d] 99-custom-scripts: executing... [custom-init] no custom files found exiting... [cont-init.d] 99-custom-scripts: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. starting with no password [2021-03-18T16:21:31.781Z] info code-server 3.9.1 e0203f2a36c9b7036fefa50eec6cf8fa36c5c015 [2021-03-18T16:21:31.782Z] info Using user-data-dir ~/data [2021-03-18T16:21:31.798Z] info Using config file ~/.config/code-server/config.yaml [2021-03-18T16:21:31.798Z] info HTTP server listening on http://0.0.0.0:8443 [2021-03-18T16:21:31.798Z] info - Authentication is disabled [2021-03-18T16:21:31.798Z] info - Not serving HTTPS How can I get this running on port 443? Is there a limitation where it cannot run on 443/HTTPS? That's because you set an IP for the container. Port mapping have no function then, as it's the same as running it in host mode. If you want to use port 443 you have to use bridge network mode. Quote Link to comment
Troussdesoin Posted April 11, 2021 Share Posted April 11, 2021 (edited) Hello Guys, i successfully installed the docker and Git cloned one of my Mobile project. However when i tried to npm install it and expo install it, i got error code EACCS with permission denied to /usr/lib/modules. Does anyone of you actually succeeded on creating an node.Js developing environment? edit 1: I saw the Docker mods, so that's working, i need to open a few more ports for expoto work. But it seems a lot smoother than last time i tried edit 2 : I made Expo.io work, but same as node.js , i need to reinstall it everytime. Is there a dockerMods for Expo.io? Edited April 11, 2021 by Troussdesoin update Quote Link to comment
kray Posted April 13, 2021 Share Posted April 13, 2021 Set up the linuxserver.io code-server docker and loving how remote it has allowed me to be. However, there's a setting I relating to the intellisense setting for in php (which I code in) that I can't set properly and its been driving me nuts. The setting is php.executablePath. I believe I have the correct path set but for some reason it won't pick it up. To verify that I do have a php executable I went to the terminal and ran whereis and then which. It's spitting back the same executable path that I've put into my code server settings, so I can't figure out why i'm still getting errors. I ran < php -v > and I do have a php version installed, see below. Any help is appreciated. php -v result: PHP 7.4.15 (cli) (built: Feb 11 2021 09:48:37) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies Quote Link to comment
binarymelon Posted April 28, 2021 Share Posted April 28, 2021 Anyone aware of any custom mods for java and gradle? Quote Link to comment
saarg Posted April 28, 2021 Share Posted April 28, 2021 3 hours ago, binarymelon said: Anyone aware of any custom mods for java and gradle? If it's not listed under mods in the readme, there are none. Quote Link to comment
flinte Posted April 30, 2021 Share Posted April 30, 2021 I recently lost and had to rebuild my docker.img file settings in unraid, I had this running perfectly with MODS previously but now I seem to be running into issues. I assume I have messed up somewhere but I cant seem to locate my error. A second set of more experienced eyes are welcomed. [mod-init] Attempting to run Docker Modification Logic [mod-init] Applying linuxserver/mods:code-server-powershell files to container gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now [mod-init] Applying linuxserver/mods:code-server-python3 files to container gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now Quote Link to comment
saarg Posted April 30, 2021 Share Posted April 30, 2021 3 hours ago, flinte said: I recently lost and had to rebuild my docker.img file settings in unraid, I had this running perfectly with MODS previously but now I seem to be running into issues. I assume I have messed up somewhere but I cant seem to locate my error. A second set of more experienced eyes are welcomed. [mod-init] Attempting to run Docker Modification Logic [mod-init] Applying linuxserver/mods:code-server-powershell files to container gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now [mod-init] Applying linuxserver/mods:code-server-python3 files to container gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now Please post the docker run command so we can see the full picture. Quote Link to comment
flinte Posted April 30, 2021 Share Posted April 30, 2021 5 minutes ago, saarg said: Please post the docker run command so we can see the full picture. root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='code' --net='reverse-proxy' -e TZ="America/Denver" -e HOST_OS="Unraid" -e 'PASSWORD'='' -e 'SUDO_PASSWORD'='NunY0Businass!' -e 'HTTPS_PROXY'='https://192.168.11.3' -e 'DOCKER_MODS'='linuxserver/mods:code-server-powershell|linuxserver/mods:code-server-python3' -e 'HTTP_PROXY'='http://192.168.11.3' -e 'PUID'='99' -e 'PGID'='100' -p '11443:8443/tcp' -v '/mnt/user/appdata/code-server':'/config':'rw' -v '/mnt/user/software/Scripts':'/workspace':'rw' 'linuxserver/code-server' 8cf52278e45640c43f3a34724c3ae5d55d377d949116ee4b9702f4219b3910ad The command finished successfully! Quote Link to comment
saarg Posted May 1, 2021 Share Posted May 1, 2021 16 hours ago, flinte said: root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='code' --net='reverse-proxy' -e TZ="America/Denver" -e HOST_OS="Unraid" -e 'PASSWORD'='' -e 'SUDO_PASSWORD'='NunY0Businass!' -e 'HTTPS_PROXY'='https://192.168.11.3' -e 'DOCKER_MODS'='linuxserver/mods:code-server-powershell|linuxserver/mods:code-server-python3' -e 'HTTP_PROXY'='http://192.168.11.3' -e 'PUID'='99' -e 'PGID'='100' -p '11443:8443/tcp' -v '/mnt/user/appdata/code-server':'/config':'rw' -v '/mnt/user/software/Scripts':'/workspace':'rw' 'linuxserver/code-server' 8cf52278e45640c43f3a34724c3ae5d55d377d949116ee4b9702f4219b3910ad The command finished successfully! Where did you get the http and https proxy env variables from? That's not something from our container. Quote Link to comment
flinte Posted May 3, 2021 Share Posted May 3, 2021 On 5/1/2021 at 7:07 AM, saarg said: Where did you get the http and https proxy env variables from? That's not something from our container. I am unsure. I thought I got it from your dockerhub page .. regardless removal of these lines worked Quote Link to comment
saarg Posted May 3, 2021 Share Posted May 3, 2021 4 hours ago, flinte said: I am unsure. I thought I got it from your dockerhub page .. regardless removal of these lines worked It's not in our documentation and I can't remember having it there either. 1 Quote Link to comment
Vaslo Posted May 31, 2021 Share Posted May 31, 2021 Hello, I am trying to do some C++ coding and compiling. In order to get g++ (compiler) I went through the terminal and installed it and it's dependancies. It worked fine and then I updated the container and now it's gone. I assume this is due to the lack of persistence in the container. Is the best way to have this work everytime I startup the container to alter the script? If so, is the script persistent every time I update the container or do I need to do extra work to save the script? Is there a better way to do this? Sorry - I know this is a more general container question but I'm thinking someone else had this issue very specific to the container so I thought I'd start here. Thanks! Quote Link to comment
saarg Posted June 2, 2021 Share Posted June 2, 2021 On 5/31/2021 at 5:16 PM, Vaslo said: Hello, I am trying to do some C++ coding and compiling. In order to get g++ (compiler) I went through the terminal and installed it and it's dependancies. It worked fine and then I updated the container and now it's gone. I assume this is due to the lack of persistence in the container. Is the best way to have this work everytime I startup the container to alter the script? If so, is the script persistent every time I update the container or do I need to do extra work to save the script? Is there a better way to do this? Sorry - I know this is a more general container question but I'm thinking someone else had this issue very specific to the container so I thought I'd start here. Thanks! Using the script function it will survive updates. Quote Link to comment
freddy0 Posted June 16, 2021 Share Posted June 16, 2021 Hey there, would you consider pushing a 3.9.1 image to dockerhub, there is an issue with ipads on some newer versions and in this version it should still work. refering to https://github.com/cdr/code-server/discussions/2988 Quote Link to comment
saarg Posted June 17, 2021 Share Posted June 17, 2021 On 6/16/2021 at 7:56 PM, freddy0 said: Hey there, would you consider pushing a 3.9.1 image to dockerhub, there is an issue with ipads on some newer versions and in this version it should still work. refering to https://github.com/cdr/code-server/discussions/2988 You could have checked docker hub before asking maybe? Quote Link to comment
freddy0 Posted June 22, 2021 Share Posted June 22, 2021 On 6/17/2021 at 9:14 PM, saarg said: You could have checked docker hub before asking maybe? so sorry, now that you said that i saw the multiple pages of releases. thanks for pointing that out anyways Quote Link to comment
Kubikaze Posted July 23, 2021 Share Posted July 23, 2021 Hello, I'm trying to set up Latex Workshop and am getting an error: "command 'latex-workshop.build' not found" I installed texlive via the coder server command line and am not getting any errors in the logs. Anyone have any suggestions? Quote Link to comment
josephsiu Posted September 4, 2021 Share Posted September 4, 2021 (edited) Did anyone managed to get SUDO_PASSWORD_HASH working? I'm using the same instruction as HASHED_PASSWORD (different password). The hashed password worked but I was not able to sudo. It kept saying my password was wrong. Method: echo -n "thisismypassword" | npx argon2-cli -e I was able to set a sudo password plaintext by using SUDO_PASSWORD but I would like to hash it. Edited September 4, 2021 by josephsiu Quote Link to comment
Aerius Posted September 9, 2021 Share Posted September 9, 2021 Hello, To make the SUDO_PASSWORD_HASH work, you have to generate it. For example: openssl passwd -6 -salt RANDOM_STRING_USED_AS_SALT YOURPASSWORD (-6 for sha512, -5 for sha256) You will get a string in this format: $type$salt$hashed (as documented) If you use docker-compose, don't forget to put $$ instead of $ in the environment variable: $$6$$SALT$$HASHEDPASSWORD The password will be set in /etc/shadow. Quote Link to comment
Recommended Posts
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.