olbat / dockerfiles

A collection of Dockerfiles
https://hub.docker.com/u/olbat/
GNU General Public License v3.0
135 stars 75 forks source link

Persistent data? Change of username and password? #64

Closed MilorES closed 2 years ago

MilorES commented 2 years ago

I tried several things and in the worst case it didn't start (in some cases it wasn't persistent data or the credentials weren't changed).

MilorES commented 2 years ago

I think I was able to find some information. Use "Docker cp" and then bind the volume... to make them persistent, I have to find where CUPS saves the configuration.

Although I still don't know how from the user... I suppose it will also be learning something more about docker :/

Note: I am used to taking images that when you use -v they put the files inside and folders if they are not there (and if they are they keep them)

olbat commented 2 years ago

There are hints about how to persist the cupsd configuration file in the README.

About the username and password, the default configuration checks the system's user accounts database. You can get more information about the files used to save this database here if you want to make them persistent.

A default user "print" is created in the Dockerfile, you can create a new one following the same procedure (or change it's password using passwd).

Note: there are probably other (more simple?) ways to configure cupsd authentication, please refer to the manual