dockerfiles icon indicating copy to clipboard operation
dockerfiles copied to clipboard

Request: Make access credentials for cupsd configureable

Open JohanBraeken opened this issue 2 months ago • 1 comments

The default user and password are configured in the dockerfile as hardcoded entries. ==> https://github.com/olbat/dockerfiles/blob/master/cupsd/Dockerfile#L53

It is possible the change the password through the standard "passwd" utility as indicated in https://github.com/olbat/dockerfiles/issues/64 However, this password change is undone, and the password is reset to the default, whenever the docker container is recreated.

Is it possible to have the password set from an environment variable? (Ex: Through a Docker compose file.) This way, a strong password can be enforced which is retained when the container is recreated. If no password is configured, the current default can still be used.

JohanBraeken avatar Sep 30 '25 07:09 JohanBraeken

It is possible to add a build variable, yes. But you will have to build the image yourself to configure it with an arbitrary password. Is this what you are looking for?

btw, if you change the password inside a running container and want to make the change persistent, you can always generate a new image from a snapshot of the container using docker commit.

olbat avatar Oct 11 '25 13:10 olbat