News for hackers. Stuff that matters.
Re:Over 30% of Official Images in Docker Hub Contain Securit... by olavgg on Wednesday May 27, 2015 @05:54AM (#9610303)
Actually its pretty easy, I just did it yesterday for my PostgreSQL container.

Debian/Ubuntu example: sudo docker exec -it my_pgsql_container_name /bin/sh -c "apt-get update; apt-get -qqy upgrade; apt-get clean"

Re:Over 30% of Official Images in Docker Hub Contain Securit... by tomaac on Wednesday May 27, 2015 @06:58AM (#9610484)
And what happens when you launch new container from the same image? You need to run apt-get/yum again. Or rebuild image.
Re:Over 30% of Official Images in Docker Hub Contain Securit... by s_baby on Wednesday May 27, 2015 @07:28AM (#9610584)
That's why you keep everything with state in a separate volume container. Attach volume to built image and that's it.
Re:Over 30% of Official Images in Docker Hub Contain Securit... by alextgordon on Wednesday May 27, 2015 @07:40AM (#9610641)
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.
Re:Over 30% of Official Images in Docker Hub Contain Securit... by jeromenerf on Wednesday May 27, 2015 @09:59AM (#9611345)
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.

Re:Over 30% of Official Images in Docker Hub Contain Securit... by s_baby on Wednesday May 27, 2015 @12:06PM (#9612335)
>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.

Re:Over 30% of Official Images in Docker Hub Contain Securit... by KaiserPro on Wednesday May 27, 2015 @07:08AM (#9610510)
and that defeats the whole selling point of docker, which is no forward config, containers do not change once shipped.
Re:Over 30% of Official Images in Docker Hub Contain Securit... by ChrisArgyle on Wednesday May 27, 2015 @10:38AM (#9611639)
Worse, doing this breaks your guarantee that all environments deployed from this image will be consistent. You'll have to deploy some config management software (Puppet/Chef/Salt/Ansible) to stay on top of these changes.