{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/docker/issues/7859","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/7859/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/7859/comments","events_url":"https://api.github.com/repos/docker/docker/issues/7859/events","html_url":"https://github.com/docker/docker/issues/7859","id":41811975,"number":7859,"title":"Proposal: Add a way of forking/cloning containers","user":{"login":"kuon","id":160200,"avatar_url":"https://avatars.githubusercontent.com/u/160200?v=3","gravatar_id":"","url":"https://api.github.com/users/kuon","html_url":"https://github.com/kuon","followers_url":"https://api.github.com/users/kuon/followers","following_url":"https://api.github.com/users/kuon/following{/other_user}","gists_url":"https://api.github.com/users/kuon/gists{/gist_id}","starred_url":"https://api.github.com/users/kuon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuon/subscriptions","organizations_url":"https://api.github.com/users/kuon/orgs","repos_url":"https://api.github.com/users/kuon/repos","events_url":"https://api.github.com/users/kuon/events{/privacy}","received_events_url":"https://api.github.com/users/kuon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/kind/feature","name":"kind/feature","color":"AAB3AB"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2014-09-03T12:45:20Z","updated_at":"2016-09-10T00:56:49Z","closed_at":"2016-09-10T00:56:49Z","body":"It would be very useful to be able to do something like:\r\n\r\n    docker clone -e SOMEVAR=foo --name=newcontainer my_container\r\n    docker clone --image=someimage --replace my_container\r\n\r\nThe first one would start a new container named \"newcontainer\" with the same settings as my_container except of the environment variable `SOMEVAR` would be overridden over \"my_container\".\r\n\r\nThe second one (which is the main feature for me) would allow \"upgrading a container\". At present if you update an image, pull it, you need to remove the old container, and start a new one with the same arguments (env vars, ports...). Of course this can be done with some orchestration tool, but when you are testing around, it would be nice to be able to do it directly.\r\n\r\nSomething like:\r\n\r\n    docker update --image=newimage my_container\r\n\r\nCould work, but I like the clone idea, and the flexibility of replacing or not the currently running container."}}
{"actor":{"display_login":"icecrime"}}