Closed Bence98007 closed 2 years ago
The password is generated at first startup with a specific volume. It checks for the presence of /firebird/system/security2.fdb and won't attempt to change the password as long as that file exists. if you remove that file from your volume it will attempt to reset it either to a new random password or to the contents of ISC_PASSWORD or the contents of the file in ISC_PASSWORD_FILE.
@Bence98007, if you pass the environment variable ISC_PASSWORD
with double quotes it should be ok:
docker run -d --restart=always
--name FB2-Develop
-e "ISC_PASSWORD=masterkey"
jacobalberty/firebird:2.5-sc
@Bence98007, if you pass the environment variable
ISC_PASSWORD
with double quotes it should be ok:docker run -d --restart=always --name FB2-Develop -e "ISC_PASSWORD=masterkey" jacobalberty/firebird:2.5-sc
Thanks! Will try that!
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 14 days.
Hi there!
I get an error message when trying to connect to the Firebird 2.5 server. I’m trying to change the default password.. I’m not sure if I can make this clear, but I’ll try:
The error: I set the password via “ISC_PASSWORD='masterkey'” environment in the run command. When I try to run the container, the password is not changed to the value I’ve set in the run command.
This is my container run command:
Error message:
Later, I found out that the default password is in use, not mine. ( “9yd3vRy0” from /usr/local/firebird/skel/etc/SYSDBA.password file ) SYSDBA.password file is not created.
Container logs:
When I delete SYSDBA.password file, and run docker image: Container logs:
Workaround
So before the first time (0.event) when I run the container, I have to copy the SYSDBA.password file from the skeleton directory in the firebird docker image, to the mapped directory (outside the docker) to make it work. After I start the container, it’s working fine, the file is changed to the new password which I’ve defined. This method is not permanent, since if You guys update this docker image, I have to extract the SYSDBA.password file again.
In Container
On host
Environment
Host (name is develop):
Docker version:
Docker images:
Running containers: