Hacker News new | past | comments | ask | show | jobs | submit login

That's why you keep everything with state in a separate volume container. Attach volume to built image and that's it.



You can, if you want, mount your root as readonly so you're not tempted to modify it. Then it behaves like a Live CD.


Mount data, logs, configuration, eventual extensions in the data container?

For pg, there might be some migration needed when jumping from a major version to the next. Which requires both versions installed, on Debian at least.


>Mount data, logs, configuration, eventual extensions in the data container?

Many programs have their state represented as files that are stable across versions. If you have a cluster of the same image with different states it's more efficient to move volume containers across a network. Easier to backup/upgrade too.

pg is going to give you those problems whether you are using Docker or not.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: