{"action":"created","issue":{"url":"https://api.github.com/repos/projectatomic/buildah/issues/600","repository_url":"https://api.github.com/repos/projectatomic/buildah","labels_url":"https://api.github.com/repos/projectatomic/buildah/issues/600/labels{/name}","comments_url":"https://api.github.com/repos/projectatomic/buildah/issues/600/comments","events_url":"https://api.github.com/repos/projectatomic/buildah/issues/600/events","html_url":"https://github.com/projectatomic/buildah/issues/600","id":315440702,"number":600,"title":"Buildah is injecting /bin/bash into cmd and should not be","user":{"login":"TomSweeneyRedHat","id":25613829,"avatar_url":"https://avatars3.githubusercontent.com/u/25613829?v=4","gravatar_id":"","url":"https://api.github.com/users/TomSweeneyRedHat","html_url":"https://github.com/TomSweeneyRedHat","followers_url":"https://api.github.com/users/TomSweeneyRedHat/followers","following_url":"https://api.github.com/users/TomSweeneyRedHat/following{/other_user}","gists_url":"https://api.github.com/users/TomSweeneyRedHat/gists{/gist_id}","starred_url":"https://api.github.com/users/TomSweeneyRedHat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomSweeneyRedHat/subscriptions","organizations_url":"https://api.github.com/users/TomSweeneyRedHat/orgs","repos_url":"https://api.github.com/users/TomSweeneyRedHat/repos","events_url":"https://api.github.com/users/TomSweeneyRedHat/events{/privacy}","received_events_url":"https://api.github.com/users/TomSweeneyRedHat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2018-04-18T11:29:40Z","updated_at":"2018-04-19T09:51:11Z","closed_at":null,"author_association":"COLLABORATOR","body":"**Description**\r\n\r\nAs reported by @pixdrift in #593 \r\n@rhatdan @TomSweeneyRedHat this isn't a complete fix. When using buildah native it is injecting a spurious /bin/bash into cmd which shouldn't be there.\r\n\r\nWhat's occuring then is that the cmd is being appended to the entrypoint. Changing entrypoint to /bin/sh -c will match docker entrypoint behaviour, but doesn't fix buildah always injecting /bin/bash into cmd.\r\n\r\n**Steps to reproduce the issue:**\r\nbuild and image using buildah bud or buildah cmd.  Then run 'buildah inspect' on the image and note the extraneous /bin/bash in the Cmd.\r\n\r\n\r\n**Describe the results you received:**\r\nSee description.\r\n\r\n**Describe the results you expected:**\r\n\r\nNo extraneous /bin/bash.  This can can cause the container to not be  run appropriately.\r\n\r\n\r\n**Output of `buildah version`:**\r\n\r\nBuildah v0.16\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/projectatomic/buildah/issues/comments/382677471","html_url":"https://github.com/projectatomic/buildah/issues/600#issuecomment-382677471","issue_url":"https://api.github.com/repos/projectatomic/buildah/issues/600","id":382677471,"user":{"login":"pixdrift","id":12966049,"avatar_url":"https://avatars2.githubusercontent.com/u/12966049?v=4","gravatar_id":"","url":"https://api.github.com/users/pixdrift","html_url":"https://github.com/pixdrift","followers_url":"https://api.github.com/users/pixdrift/followers","following_url":"https://api.github.com/users/pixdrift/following{/other_user}","gists_url":"https://api.github.com/users/pixdrift/gists{/gist_id}","starred_url":"https://api.github.com/users/pixdrift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixdrift/subscriptions","organizations_url":"https://api.github.com/users/pixdrift/orgs","repos_url":"https://api.github.com/users/pixdrift/repos","events_url":"https://api.github.com/users/pixdrift/events{/privacy}","received_events_url":"https://api.github.com/users/pixdrift/received_events","type":"User","site_admin":false},"created_at":"2018-04-19T09:51:11Z","updated_at":"2018-04-19T09:51:11Z","author_association":"CONTRIBUTOR","body":"Test 7: docker build the following (empty entrypoint)\r\n```\r\nFROM centos:7\r\nENTRYPOINT \"\"\r\nWORKDIR /tmp\r\n\r\n```\r\n\r\nResult:\r\n```\r\n# docker inspect a50 | jq '.[].Config.Cmd'\r\nnull\r\n```"}}
{"actor":{"display_login":"pixdrift"}}