{"action":"created","issue":{"url":"https://api.github.com/repos/docker/compose/issues/614","labels_url":"https://api.github.com/repos/docker/compose/issues/614/labels{/name}","comments_url":"https://api.github.com/repos/docker/compose/issues/614/comments","events_url":"https://api.github.com/repos/docker/compose/issues/614/events","html_url":"https://github.com/docker/compose/issues/614","id":47757856,"number":614,"title":"Document that fig does not always rebuild images automatically","user":{"login":"jamshid","id":8549,"avatar_url":"https://avatars.githubusercontent.com/u/8549?v=3","gravatar_id":"","url":"https://api.github.com/users/jamshid","html_url":"https://github.com/jamshid","followers_url":"https://api.github.com/users/jamshid/followers","following_url":"https://api.github.com/users/jamshid/following{/other_user}","gists_url":"https://api.github.com/users/jamshid/gists{/gist_id}","starred_url":"https://api.github.com/users/jamshid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamshid/subscriptions","organizations_url":"https://api.github.com/users/jamshid/orgs","repos_url":"https://api.github.com/users/jamshid/repos","events_url":"https://api.github.com/users/jamshid/events{/privacy}","received_events_url":"https://api.github.com/users/jamshid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2014-11-04T20:00:17Z","updated_at":"2015-03-21T11:44:17Z","closed_at":null,"body":"Fig does not seem to rebuild the image it uses to create a container when the referenced \"build:\" Dockerfile or directory has changed. More documentation about how using \"build:\" differs from \"docker build\" would be good.\r\n\r\nE.g., I have directories \"foo\" and \"foo-single\":\r\n\r\nfoo/Dockerfile\r\n```\r\n...\r\n```\r\nfoo-single/Dockerfile\r\n```\r\nFROM foo\r\n...\r\n```\r\nI changed foo/Dockerfile and rebuilt both images with \"docker build -t foo ./foo\" and \"docker build -t foo-single ./foo-single\" (though I guess that doesn't matter, fig only looks at the build directory?).\r\n\r\nMy fig.yml has this so I expected it to pick up the new foo-single, but it does not. I even tried deleting the container (\"docker rm myproject_bar\") thinking it would check for build changes, but it still used the outdated \"myproject_bar\" image . \r\n```\r\nbar:\r\n  build: foo-single\r\n```\r\nI guess fig doesn't check if the Dockerfile or its directory contents have changed? I had to explicitly \"docker rmi myproject_bar\" in order to get the new \"foo\" changes."},"comment":{"url":"https://api.github.com/repos/docker/compose/issues/comments/84322666","html_url":"https://github.com/docker/compose/issues/614#issuecomment-84322666","issue_url":"https://api.github.com/repos/docker/compose/issues/614","id":84322666,"user":{"login":"RoeyPrat","id":3721069,"avatar_url":"https://avatars.githubusercontent.com/u/3721069?v=3","gravatar_id":"","url":"https://api.github.com/users/RoeyPrat","html_url":"https://github.com/RoeyPrat","followers_url":"https://api.github.com/users/RoeyPrat/followers","following_url":"https://api.github.com/users/RoeyPrat/following{/other_user}","gists_url":"https://api.github.com/users/RoeyPrat/gists{/gist_id}","starred_url":"https://api.github.com/users/RoeyPrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoeyPrat/subscriptions","organizations_url":"https://api.github.com/users/RoeyPrat/orgs","repos_url":"https://api.github.com/users/RoeyPrat/repos","events_url":"https://api.github.com/users/RoeyPrat/events{/privacy}","received_events_url":"https://api.github.com/users/RoeyPrat/received_events","type":"User","site_admin":false},"created_at":"2015-03-21T11:44:17Z","updated_at":"2015-03-21T11:44:17Z","body":"Sorry if this is naive, but is it possible to automatically rebuild if *.yml or Dockerfile were updated since last build?\r\nIt seems to me if the user updates said files they would like to rebuild, without stating so explicitly."}}