Code Monkey home page Code Monkey logo

Comments (9)

cringerjs avatar cringerjs commented on July 2, 2024 3

This repo instructions links to the coder/code-server instructions for generating the HASH. However, their documentation is incorrect for how to enter it. For both HASHED_PASSWORD and SUDO_PASSWORD_HASH it must be entered with NO QUOTES and every $ needs to be doubled up $$ so docker doesn't try to process it as a variable.

from docker-code-server.

tuxthepenguin84 avatar tuxthepenguin84 commented on July 2, 2024 2

So I ran into an issue with using hashed passwords in my compose file, on the "- HASHED_PASSWORD" line I did a find replace for all $ to $$ and that resolved the issue for me.
Example:
- HASHED_PASSWORD=$$argon2i$$v=19$$m=4096,t=3,p=1$$f2v7Q2zMnxdMtlAP1T4HXQ$$teRq1ux1px8UEHMNkFreKCEtsEIRiSpyX3kc38b5I30

from docker-code-server.

github-actions avatar github-actions commented on July 2, 2024

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

from docker-code-server.

github-actions avatar github-actions commented on July 2, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from docker-code-server.

toxic0berliner avatar toxic0berliner commented on July 2, 2024

Am I posting this in the wrong place or am I just the only one wanting this?

from docker-code-server.

github-actions avatar github-actions commented on July 2, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from docker-code-server.

Zackyist avatar Zackyist commented on July 2, 2024

I'm also having issues trying to get the hashed sudo password to work - tried changing it twice now but neither works in the code-server terminal. I was thinking about using the unhashed variable but then I found this issue and I'm not sure I should.

from docker-code-server.

aptalca avatar aptalca commented on July 2, 2024

It's not a docker thing, it's a yaml thing specifically.
In docker run, you should be able to just wrap the hash in single quotes, no escape necessary
But in yaml, quotation depends on the formatting you're using and $ needs escaping

from docker-code-server.

Hpmason avatar Hpmason commented on July 2, 2024

I'm having the same problem and SUDO_PASSWORD_HASH doesn't seem to work following these instructions

from docker-code-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.