Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
LongQIByte opened this issue Mar 27, 2019 · 5 comments

Comments

@LongQIByte
Copy link

No description provided.

@sr229
Copy link
Contributor

sr229 commented Mar 27, 2019

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.

@MichaelDesantis
Copy link
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.

@seaverd
Copy link

seaverd commented Mar 28, 2019

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?

@sr229
Copy link
Contributor

sr229 commented Mar 29, 2019

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

@code-asher
Copy link
Member

55bfeab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants