You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When I restarted docker, I found that the previously generated password could not be used. #349
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.
@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.
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?
Activity
sr229 commentedon 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
--passwordvery soon.MichaelDesantis commentedon Mar 27, 2019
@sr229 I believe the
--passwordargument 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 #5As 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 commentedon 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 commentedon Mar 29, 2019
I did some work on my Coder container but I’ll give a heads up if it works
code-asher commentedon Jul 18, 2019
55bfeab