Skip to content

When I restarted docker, I found that the previously generated password could not be used. #349

Closed

Description

@LongQIByte
No description provided.

Activity

  1. sr229 commented on Mar 27, 2019

    @sr229
    Contributor

    This is intended. There is no way at the moment to persist the password. However, if I remember the team will allow you to set your own via --password very soon.

  2. MichaelDesantis commented on Mar 27, 2019

    @MichaelDesantis
    Contributor

    @sr229 I believe the --password argument is already supported 🙂! IIRC that was one of the first PRs we merged on this repo that didn't come from someone on the Coder.com team. That PR is located at #5

    As for persisting passwords, I'd love to hear some discussion on the best way to accomplish this. My first inclination would be to have an environment variable (something like CODE_SERVER_PASSWORD) and simply check for existence of said env var before proceeding to generate a random password. But I could be overlooking a bunch of important things and introducing a whole new slew of security concerns with this method.

  3. seaverd commented on Mar 28, 2019

    @seaverd

    Would love to see an environment variable implemented for password! Saw another issue listed where developer indicated that environmental variables weren't currently supported and users needed to create their own dockerfile. As a newbie, I forked and have tested two builds but can't get it. So far can't even test this as I have no Mac or Linux to run the cli to get password. Any way to get or set password at bash prompt within the docker container?

  4. sr229 commented on Mar 29, 2019

    @sr229
    Contributor

    I did some work on my Coder container but I’ll give a heads up if it works

  5. code-asher commented on Jul 18, 2019

    @code-asher
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions