{"action":"created","issue":{"url":"https://api.github.com/repos/subuser-security/subuser/issues/231","labels_url":"https://api.github.com/repos/subuser-security/subuser/issues/231/labels{/name}","comments_url":"https://api.github.com/repos/subuser-security/subuser/issues/231/comments","events_url":"https://api.github.com/repos/subuser-security/subuser/issues/231/events","html_url":"https://github.com/subuser-security/subuser/issues/231","id":110801492,"number":231,"title":"\"subuser update\" uses docker cache","user":{"login":"ruipgpinheiro","id":11169970,"avatar_url":"https://avatars.githubusercontent.com/u/11169970?v=3","gravatar_id":"","url":"https://api.github.com/users/ruipgpinheiro","html_url":"https://github.com/ruipgpinheiro","followers_url":"https://api.github.com/users/ruipgpinheiro/followers","following_url":"https://api.github.com/users/ruipgpinheiro/following{/other_user}","gists_url":"https://api.github.com/users/ruipgpinheiro/gists{/gist_id}","starred_url":"https://api.github.com/users/ruipgpinheiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruipgpinheiro/subscriptions","organizations_url":"https://api.github.com/users/ruipgpinheiro/orgs","repos_url":"https://api.github.com/users/ruipgpinheiro/repos","events_url":"https://api.github.com/users/ruipgpinheiro/events{/privacy}","received_events_url":"https://api.github.com/users/ruipgpinheiro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-10T15:43:08Z","updated_at":"2015-10-10T18:12:28Z","closed_at":null,"body":"`subuser update` is supposed to rebuild the subuser if `check-for-updates` returns zero. This is correct, however I have noticed that it uses the docker cache during rebuild, and therefore doesn't change anything.\r\n\r\nHave I misunderstood something? The documentation doesn't explain `subuser update` very well, so that could be the case. Because the way it is, no matter how many updates there might be, unless you change the actual dockerfile, nothing will be updated (at least as far as I can see). Shouldn't it rebuild the image with `--no-cache=true`?"},"comment":{"url":"https://api.github.com/repos/subuser-security/subuser/issues/comments/147113542","html_url":"https://github.com/subuser-security/subuser/issues/231#issuecomment-147113542","issue_url":"https://api.github.com/repos/subuser-security/subuser/issues/231","id":147113542,"user":{"login":"timthelion","id":1391608,"avatar_url":"https://avatars.githubusercontent.com/u/1391608?v=3","gravatar_id":"","url":"https://api.github.com/users/timthelion","html_url":"https://github.com/timthelion","followers_url":"https://api.github.com/users/timthelion/followers","following_url":"https://api.github.com/users/timthelion/following{/other_user}","gists_url":"https://api.github.com/users/timthelion/gists{/gist_id}","starred_url":"https://api.github.com/users/timthelion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timthelion/subscriptions","organizations_url":"https://api.github.com/users/timthelion/orgs","repos_url":"https://api.github.com/users/timthelion/repos","events_url":"https://api.github.com/users/timthelion/events{/privacy}","received_events_url":"https://api.github.com/users/timthelion/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T18:12:28Z","updated_at":"2015-10-10T18:12:28Z","body":"You missunderstand `check-for-updates`. `subuser update` rebuilds the image if `check-for-updates` returns something other than zero(typically 1).  This convention is taken from the POSIX standard. \"[The most common convention is simply 0 for success and 1 for failure](https://www.gnu.org/software/libc/manual/html_node/Exit-Status.html)\"."}}