{"action":"created","issue":{"url":"https://api.github.com/repos/moby/moby/issues/1996","repository_url":"https://api.github.com/repos/moby/moby","labels_url":"https://api.github.com/repos/moby/moby/issues/1996/labels{/name}","comments_url":"https://api.github.com/repos/moby/moby/issues/1996/comments","events_url":"https://api.github.com/repos/moby/moby/issues/1996/events","html_url":"https://github.com/moby/moby/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://avatars2.githubusercontent.com/u/1509984?v=4","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":[{"id":73616520,"url":"https://api.github.com/repos/moby/moby/labels/area/builder","name":"area/builder","color":"fbca04","default":false},{"id":179237833,"url":"https://api.github.com/repos/moby/moby/labels/kind/feature","name":"kind/feature","color":"AAB3AB","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":188,"created_at":"2013-09-24T20:18:45Z","updated_at":"2018-03-29T15:14:23Z","closed_at":"2015-04-15T23:05:32Z","author_association":"NONE","body":"branching off the discussion from #1384 :\n\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?\n\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?\n"},"comment":{"url":"https://api.github.com/repos/moby/moby/issues/comments/377268624","html_url":"https://github.com/moby/moby/issues/1996#issuecomment-377268624","issue_url":"https://api.github.com/repos/moby/moby/issues/1996","id":377268624,"user":{"login":"thiagorova","id":11561119,"avatar_url":"https://avatars3.githubusercontent.com/u/11561119?v=4","gravatar_id":"","url":"https://api.github.com/users/thiagorova","html_url":"https://github.com/thiagorova","followers_url":"https://api.github.com/users/thiagorova/followers","following_url":"https://api.github.com/users/thiagorova/following{/other_user}","gists_url":"https://api.github.com/users/thiagorova/gists{/gist_id}","starred_url":"https://api.github.com/users/thiagorova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiagorova/subscriptions","organizations_url":"https://api.github.com/users/thiagorova/orgs","repos_url":"https://api.github.com/users/thiagorova/repos","events_url":"https://api.github.com/users/thiagorova/events{/privacy}","received_events_url":"https://api.github.com/users/thiagorova/received_events","type":"User","site_admin":false},"created_at":"2018-03-29T15:14:23Z","updated_at":"2018-03-29T15:14:23Z","author_association":"NONE","body":"+1"}}
{"actor":{"display_login":"thiagorova"}}