{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/1996","labels_url":"https://api.github.com/repos/docker/docker/issues/1996/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/1996/comments","events_url":"https://api.github.com/repos/docker/docker/issues/1996/events","html_url":"https://github.com/docker/docker/issues/1996","id":20003240,"number":1996,"title":"New feature request: Selectively disable caching for specific RUN commands in Dockerfile","user":{"login":"mohanraj-r","id":1509984,"avatar_url":"https://avatars.githubusercontent.com/u/1509984?v=3","gravatar_id":"","url":"https://api.github.com/users/mohanraj-r","html_url":"https://github.com/mohanraj-r","followers_url":"https://api.github.com/users/mohanraj-r/followers","following_url":"https://api.github.com/users/mohanraj-r/following{/other_user}","gists_url":"https://api.github.com/users/mohanraj-r/gists{/gist_id}","starred_url":"https://api.github.com/users/mohanraj-r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohanraj-r/subscriptions","organizations_url":"https://api.github.com/users/mohanraj-r/orgs","repos_url":"https://api.github.com/users/mohanraj-r/repos","events_url":"https://api.github.com/users/mohanraj-r/events{/privacy}","received_events_url":"https://api.github.com/users/mohanraj-r/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/area/builder","name":"area/builder","color":"0052cc"},{"url":"https://api.github.com/repos/docker/docker/labels/kind/feature","name":"kind/feature","color":"AAB3AB"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":110,"created_at":"2013-09-24T20:18:45Z","updated_at":"2016-01-03T22:32:46Z","closed_at":"2015-04-15T23:05:32Z","body":"branching off the discussion from #1384 :\r\n\r\nI understand -no-cache will disable caching for the entire Dockerfile. But would be useful if I can disable cache for a specific RUN command? For example updating repos or downloading a remote file .. etc. From my understanding that right now RUN apt-get update if cached wouldn't actually update the repo? This will cause the results to be different than from a VM?\r\n\r\nIf disable caching for specific commands in the Dockerfile is made possible, would the subsequent commands in the file then not use the cache? Or would they do something a bit more intelligent - e.g. use cache if the previous command produced same results (fs layer) when compared to a previous run?\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/168548497","html_url":"https://github.com/docker/docker/issues/1996#issuecomment-168548497","issue_url":"https://api.github.com/repos/docker/docker/issues/1996","id":168548497,"user":{"login":"acloudburo","id":10681915,"avatar_url":"https://avatars.githubusercontent.com/u/10681915?v=3","gravatar_id":"","url":"https://api.github.com/users/acloudburo","html_url":"https://github.com/acloudburo","followers_url":"https://api.github.com/users/acloudburo/followers","following_url":"https://api.github.com/users/acloudburo/following{/other_user}","gists_url":"https://api.github.com/users/acloudburo/gists{/gist_id}","starred_url":"https://api.github.com/users/acloudburo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acloudburo/subscriptions","organizations_url":"https://api.github.com/users/acloudburo/orgs","repos_url":"https://api.github.com/users/acloudburo/repos","events_url":"https://api.github.com/users/acloudburo/events{/privacy}","received_events_url":"https://api.github.com/users/acloudburo/received_events","type":"User","site_admin":false},"created_at":"2016-01-03T22:32:46Z","updated_at":"2016-01-03T22:32:46Z","body":"+1"}}