{"action":"opened","issue":{"url":"https://api.github.com/repos/openshift/imagebuilder/issues/87","repository_url":"https://api.github.com/repos/openshift/imagebuilder","labels_url":"https://api.github.com/repos/openshift/imagebuilder/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/openshift/imagebuilder/issues/87/comments","events_url":"https://api.github.com/repos/openshift/imagebuilder/issues/87/events","html_url":"https://github.com/openshift/imagebuilder/issues/87","id":339672770,"node_id":"MDU6SXNzdWUzMzk2NzI3NzA=","number":87,"title":"implicit dir creates with WORKDIR and VOLUME","user":{"login":"sosiouxme","id":29690,"node_id":"MDQ6VXNlcjI5Njkw","avatar_url":"https://avatars1.githubusercontent.com/u/29690?v=4","gravatar_id":"","url":"https://api.github.com/users/sosiouxme","html_url":"https://github.com/sosiouxme","followers_url":"https://api.github.com/users/sosiouxme/followers","following_url":"https://api.github.com/users/sosiouxme/following{/other_user}","gists_url":"https://api.github.com/users/sosiouxme/gists{/gist_id}","starred_url":"https://api.github.com/users/sosiouxme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sosiouxme/subscriptions","organizations_url":"https://api.github.com/users/sosiouxme/orgs","repos_url":"https://api.github.com/users/sosiouxme/repos","events_url":"https://api.github.com/users/sosiouxme/events{/privacy}","received_events_url":"https://api.github.com/users/sosiouxme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-10T02:41:44Z","updated_at":"2018-07-10T02:41:44Z","closed_at":null,"author_association":"MEMBER","body":"```\r\n$ cat Dockerfile\r\n\r\nFROM centos:7\r\nWORKDIR /foo\r\nVOLUME  [ \"/foo\" ]\r\nRUN echo\r\n\r\n$ imagebuilder .\r\n--> FROM centos:7 as 0\r\n--> WORKDIR /foo\r\n--> VOLUME  [ \"/foo\" ]\r\n--> RUN echo\r\nAPI error (404): {\"message\":\"lstat /var/lib/docker/overlay2/6b7c9551518e64992927f58da362b38949eddbb602f5eea6e15a9278be278bdb/merged/foo/: no such file or directory\"}\r\n```\r\n\r\nYou will also get a different error without the `VOLUME` line:\r\n\r\n`/bin/sh: line 0: cd: /foo: No such file or directory`\r\n\r\nThe workaround is to `RUN mkdir /foo` before using it as a volume or workdir."}}
{"actor":{"display_login":"sosiouxme"}}