{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/14339","labels_url":"https://api.github.com/repos/docker/docker/issues/14339/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/14339/comments","events_url":"https://api.github.com/repos/docker/docker/issues/14339/events","html_url":"https://github.com/docker/docker/issues/14339","id":92504885,"number":14339,"title":"\"docker build -f FILE_NAME\" requires full path to the file","user":{"login":"wzheng2310","id":8977837,"avatar_url":"https://avatars.githubusercontent.com/u/8977837?v=3","gravatar_id":"","url":"https://api.github.com/users/wzheng2310","html_url":"https://github.com/wzheng2310","followers_url":"https://api.github.com/users/wzheng2310/followers","following_url":"https://api.github.com/users/wzheng2310/following{/other_user}","gists_url":"https://api.github.com/users/wzheng2310/gists{/gist_id}","starred_url":"https://api.github.com/users/wzheng2310/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wzheng2310/subscriptions","organizations_url":"https://api.github.com/users/wzheng2310/orgs","repos_url":"https://api.github.com/users/wzheng2310/repos","events_url":"https://api.github.com/users/wzheng2310/events{/privacy}","received_events_url":"https://api.github.com/users/wzheng2310/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2015-07-01T23:14:48Z","updated_at":"2015-08-27T13:20:28Z","closed_at":"2015-07-01T23:22:03Z","body":"Hi, \r\n\r\nWhen I run this from command line:\r\ndocker build -t XXX --file Dockerfile /full/path/to/directory/containing/the/given/dockerfile\r\n\r\nI got this error:\r\nThe Dockerfile (Dockerfile) must be within the build context (/full/path/to/directory/containing/the/given/dockerfile/)\r\n\r\nI have to give full path to the filename, i.e.:\r\ndocker build -t XXX --file /full/path/to/directory/containing/the/given/dockerfile/Dockerfile /full/path/to/directory/containing/the/given/dockerfile\r\n\r\nThis does not make much sense to me. The path to the directory (i.e. the build context) is already given, the file name should be assumed to be under that directory."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/135425829","html_url":"https://github.com/docker/docker/issues/14339#issuecomment-135425829","issue_url":"https://api.github.com/repos/docker/docker/issues/14339","id":135425829,"user":{"login":"MJ-Lee","id":10979135,"avatar_url":"https://avatars.githubusercontent.com/u/10979135?v=3","gravatar_id":"","url":"https://api.github.com/users/MJ-Lee","html_url":"https://github.com/MJ-Lee","followers_url":"https://api.github.com/users/MJ-Lee/followers","following_url":"https://api.github.com/users/MJ-Lee/following{/other_user}","gists_url":"https://api.github.com/users/MJ-Lee/gists{/gist_id}","starred_url":"https://api.github.com/users/MJ-Lee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MJ-Lee/subscriptions","organizations_url":"https://api.github.com/users/MJ-Lee/orgs","repos_url":"https://api.github.com/users/MJ-Lee/repos","events_url":"https://api.github.com/users/MJ-Lee/events{/privacy}","received_events_url":"https://api.github.com/users/MJ-Lee/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T13:20:28Z","updated_at":"2015-08-27T13:20:28Z","body":"The same with @mingfang \r\nI use a /tmp folder, get the same error.\r\nAny follow up?"}}