{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/20799","labels_url":"https://api.github.com/repos/saltstack/salt/issues/20799/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/20799/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/20799/events","html_url":"https://github.com/saltstack/salt/pull/20799","id":58086643,"number":20799,"title":"Adds docker.latest_running state","user":{"login":"jfindlay","id":702905,"avatar_url":"https://avatars.githubusercontent.com/u/702905?v=3","gravatar_id":"","url":"https://api.github.com/users/jfindlay","html_url":"https://github.com/jfindlay","followers_url":"https://api.github.com/users/jfindlay/followers","following_url":"https://api.github.com/users/jfindlay/following{/other_user}","gists_url":"https://api.github.com/users/jfindlay/gists{/gist_id}","starred_url":"https://api.github.com/users/jfindlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfindlay/subscriptions","organizations_url":"https://api.github.com/users/jfindlay/orgs","repos_url":"https://api.github.com/users/jfindlay/repos","events_url":"https://api.github.com/users/jfindlay/events{/privacy}","received_events_url":"https://api.github.com/users/jfindlay/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Expert%20Change","name":"Expert Change","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-18T15:59:57Z","updated_at":"2015-03-12T16:46:12Z","closed_at":"2015-02-18T17:55:16Z","pull_request":{"url":"https://api.github.com/repos/saltstack/salt/pulls/20799","html_url":"https://github.com/saltstack/salt/pull/20799","diff_url":"https://github.com/saltstack/salt/pull/20799.diff","patch_url":"https://github.com/saltstack/salt/pull/20799.patch"},"body":"Ensures the container is running with the correct configuration and its\r\nimage is the latest available.  Rebase of #19837."},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/78523039","html_url":"https://github.com/saltstack/salt/pull/20799#issuecomment-78523039","issue_url":"https://api.github.com/repos/saltstack/salt/issues/20799","id":78523039,"user":{"login":"ipmb","id":319156,"avatar_url":"https://avatars.githubusercontent.com/u/319156?v=3","gravatar_id":"","url":"https://api.github.com/users/ipmb","html_url":"https://github.com/ipmb","followers_url":"https://api.github.com/users/ipmb/followers","following_url":"https://api.github.com/users/ipmb/following{/other_user}","gists_url":"https://api.github.com/users/ipmb/gists{/gist_id}","starred_url":"https://api.github.com/users/ipmb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipmb/subscriptions","organizations_url":"https://api.github.com/users/ipmb/orgs","repos_url":"https://api.github.com/users/ipmb/repos","events_url":"https://api.github.com/users/ipmb/events{/privacy}","received_events_url":"https://api.github.com/users/ipmb/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T16:46:12Z","updated_at":"2015-03-12T16:46:12Z","body":"I'm fine with whatever. I do think there's a couple things of value here that weren't there before:\r\n\r\n* [Checking if the configuration has changed](https://github.com/saltstack/salt/blob/94995c6b9fedf18ba26a0471d255ad715f9c1e47/salt/states/dockerio.py#L194-L236). This is functionality that doesn't currently exist and leads to unexpected behavior imo. If you change the configuration a running container today, Salt just ignores it.\r\n* [Accepting port definitions in the same format as the Docker CLI](https://github.com/saltstack/salt/blob/94995c6b9fedf18ba26a0471d255ad715f9c1e47/salt/states/dockerio.py#L294-L325). No new functionality, but it makes the states much easier to use in my opinion. I'm guessing users will have a better familiarity with the Docker CLI than the Python client.\r\n* [Accepting volume definitions in the same format as the Docker CLI](https://github.com/saltstack/salt/blob/94995c6b9fedf18ba26a0471d255ad715f9c1e47/salt/states/dockerio.py#L269-L291). Same as the port definitions above."}}