{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/docker/issues/11361","labels_url":"https://api.github.com/repos/docker/docker/issues/11361/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/11361/comments","events_url":"https://api.github.com/repos/docker/docker/issues/11361/events","html_url":"https://github.com/docker/docker/issues/11361","id":60978351,"number":11361,"title":"Best practices for updating security patches for containers","user":{"login":"sourav82","id":9670913,"avatar_url":"https://avatars.githubusercontent.com/u/9670913?v=3","gravatar_id":"","url":"https://api.github.com/users/sourav82","html_url":"https://github.com/sourav82","followers_url":"https://api.github.com/users/sourav82/followers","following_url":"https://api.github.com/users/sourav82/following{/other_user}","gists_url":"https://api.github.com/users/sourav82/gists{/gist_id}","starred_url":"https://api.github.com/users/sourav82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourav82/subscriptions","organizations_url":"https://api.github.com/users/sourav82/orgs","repos_url":"https://api.github.com/users/sourav82/repos","events_url":"https://api.github.com/users/sourav82/events{/privacy}","received_events_url":"https://api.github.com/users/sourav82/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-13T04:07:50Z","updated_at":"2015-03-13T04:07:50Z","closed_at":null,"body":"I was wondering the best ways to update the containers with latest security patches. I tried first with apt-get upgrade in the CMD script so that when container starts, it upgrades it. But it is time consuming to start a container every time and may even break the container. Sometimes, the containers are long running and sometime short lived but how to make the containers always updated? Another alternative I could think to update the base images offline and push to registry and invalidate all the containers that uses that image, but this should be done as a workflow in scheduled manner.\r\n\r\nAny ideas or best practices or references would be very helpful here."}}