I agree. Keeping things immutable, throwing them away and recreating them if something changes and not pampering some configuration with all its problems over time (configuration drift etc.) is the way to go IMHO.
Best regards,
Sebastian
Mit freundlichen Grüßen / Best regards
Dr.-Ing. Sebastian Schuster
Project Delivery Berlin 22 (IOC/PDL22)
Bosch.IO GmbH | Ullsteinstr. 128 | 12109 Berlin |
GERMANY | www.bosch.io
Tel. +49 30 726112-485 | Mobil +49 152 02177668 | Telefax +49 30 726112-100 |
Sebastian...@bosch.io
Sitz: Berlin, Registergericht: Amtsgericht Charlottenburg; HRB 148411 B
Aufsichtsratsvorsitzender: Dr.-Ing. Thorsten Lücke; Geschäftsführung: Dr. Stefan Ferber, Dr. Aleksandar Mitrovic, Yvonne Reckling
--
You received this message because you are subscribed to the Google Groups "Keycloak Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
keycloak-dev...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/keycloak-dev/18aa9216-c4fd-47d9-85a6-ad92f790c8b7o%40googlegroups.com.
Hi, we've run into this issue internally, and would love to be able to restart containers after a reboot. We'd like to understand more about the decision to not support it.
> What if the environment variables change?
Is it possible to change the environment on a created container? I'm not sure this is supported by Docker. Even so I think it would be reasonable to not support env var changes; I think this is tangential to the issue of starting and stopping containers.
> I used to think about containers as immutable things. Whenever you'd like to update your configuration (like mount a new TLS key/cert), you always need a [re-run].
I also think this is tangential, and I think it would be helpful to isolate these issues in discussion. There are two separate questions here:
1. How the container responds to changed configuration (where it is possible to change, e.g. mounted volumes)
2. Whether the container can be restarted, with the same configuration
We only want (2), and most of the work in the linked PR has gone into (2), so I'm not sure it should be dismissed on the basis of (1).
The way I see it, the current behaviour of the start-up scripts is actually contrary to the idea that the container is immutable after creation. Making all the configuration scripts execute only once would support start/stop without introducing any issues with regard to changing configuration. Unless I misunderstand something, I think this would be an uncontroversial change and would solve (2). What do you think?
The other point is about configuration by mounted volumes, e.g. certs; I think you're right that changes to these should be picked up. Is it possible to make these scripts, which copy/reformat the mounted files, execute every time? That would solve (1). But again, I think this could be broken out into a separate issue.
--
You received this message because you are subscribed to the Google Groups "Keycloak Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/9ca3c7a8-09ee-477e-8da1-d36d6055eb86n%40googlegroups.com.
Hello, I would very much support the idea of just allowing stop/start of the container possible.Perhaps in the discussion here we try to handle to many edge cases.I bet that 99.9% use case for this feature would be just to stop/start the container with assumption that no other environmental change happened.
This ability is very useful in various docker orchestrators that are already out there in use.For example: Rancher 1.6 where start/stop is supported, orchestrator can perform that for the whole batches of containerised services.This helps eg during maintenance windows, where we can selectively disable certain services.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/d4d8cb2f-c07d-4fb9-8320-f666ab8faadbn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/d4d8cb2f-c07d-4fb9-8320-f666ab8faadbn%40googlegroups.com.
As you pointed out, it seems to prevent you from changing the environment. But still, if you have access to Docker Daemon, you can do whatever you like - it's just a stopped container. So I'm still not convinced it's worth the risk.
On Thursday, 27 August 2020 at 07:41:35 UTC+1 sebastian...@gmail.com wrote:As you pointed out, it seems to prevent you from changing the environment. But still, if you have access to Docker Daemon, you can do whatever you like - it's just a stopped container. So I'm still not convinced it's worth the risk.Could you quickly point me to how and to what extent it's possible to modify a stopped container? I looked into environment variables and couldn't see how it was possible. Changing the contents of a volume is possible, but as they're bind mounts I think that's possible during the running of the container anyway? (I'm not particularly an adept Docker user :)
I'm not completely sure that my original email was fully understood. Even if it is possible to change the environment variables of a stopped container, we're not asking for those changes to do anything at all. I don't understand how allowing the container to be merely stopped and started, without respecting any configuration change, is an argument against the mutability of the container or its configuration?
I hope I'm not missing the point too badly.Thanks,Tom
--
You received this message because you are subscribed to the Google Groups "Keycloak Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/1dd3eea7-7049-4f64-8bd5-47114c5a7af3n%40googlegroups.com.