{"action":"created","issue":{"url":"https://api.github.com/repos/ibuildthecloud/systemd-docker/issues/16","labels_url":"https://api.github.com/repos/ibuildthecloud/systemd-docker/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/ibuildthecloud/systemd-docker/issues/16/comments","events_url":"https://api.github.com/repos/ibuildthecloud/systemd-docker/issues/16/events","html_url":"https://github.com/ibuildthecloud/systemd-docker/issues/16","id":54694378,"number":16,"title":"Host config of container is reset when it starts ","user":{"login":"marcelk","id":469410,"avatar_url":"https://avatars.githubusercontent.com/u/469410?v=3","gravatar_id":"","url":"https://api.github.com/users/marcelk","html_url":"https://github.com/marcelk","followers_url":"https://api.github.com/users/marcelk/followers","following_url":"https://api.github.com/users/marcelk/following{/other_user}","gists_url":"https://api.github.com/users/marcelk/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelk/subscriptions","organizations_url":"https://api.github.com/users/marcelk/orgs","repos_url":"https://api.github.com/users/marcelk/repos","events_url":"https://api.github.com/users/marcelk/events{/privacy}","received_events_url":"https://api.github.com/users/marcelk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-18T12:03:10Z","updated_at":"2015-01-23T01:01:08Z","closed_at":"2015-01-22T22:31:27Z","body":"If systemd-docker is used without the \"--rm\" argument, the host configuration of the container is reset when the container is started for the second time. For example, if the \"--privileged\" parameter is used, the container will run in privileged mode the first time, but when it is started for the second time, it's not privileged any more. Also, the port bindings are gone, and all other HostConfig properties.\r\n\r\nThis is caused by this line in lookupNamedContainer:\r\n\r\n```go\r\nerr = client.StartContainer(container.ID, nil)\r\n```\r\n\r\nThe second parameter, which is the host configuration, is left blank. I'll submit a pull request with a fix."},"comment":{"url":"https://api.github.com/repos/ibuildthecloud/systemd-docker/issues/comments/71130519","html_url":"https://github.com/ibuildthecloud/systemd-docker/issues/16#issuecomment-71130519","issue_url":"https://api.github.com/repos/ibuildthecloud/systemd-docker/issues/16","id":71130519,"user":{"login":"ibuildthecloud","id":1754002,"avatar_url":"https://avatars.githubusercontent.com/u/1754002?v=3","gravatar_id":"","url":"https://api.github.com/users/ibuildthecloud","html_url":"https://github.com/ibuildthecloud","followers_url":"https://api.github.com/users/ibuildthecloud/followers","following_url":"https://api.github.com/users/ibuildthecloud/following{/other_user}","gists_url":"https://api.github.com/users/ibuildthecloud/gists{/gist_id}","starred_url":"https://api.github.com/users/ibuildthecloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibuildthecloud/subscriptions","organizations_url":"https://api.github.com/users/ibuildthecloud/orgs","repos_url":"https://api.github.com/users/ibuildthecloud/repos","events_url":"https://api.github.com/users/ibuildthecloud/events{/privacy}","received_events_url":"https://api.github.com/users/ibuildthecloud/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T01:01:08Z","updated_at":"2015-01-23T01:01:08Z","body":"I create v0.2.0 that includes this fix. "}}