{"action":"created","issue":{"url":"https://api.github.com/repos/bflad/chef-docker/issues/377","labels_url":"https://api.github.com/repos/bflad/chef-docker/issues/377/labels{/name}","comments_url":"https://api.github.com/repos/bflad/chef-docker/issues/377/comments","events_url":"https://api.github.com/repos/bflad/chef-docker/issues/377/events","html_url":"https://github.com/bflad/chef-docker/issues/377","id":101993298,"number":377,"title":"executable file not found in $PATH ","user":{"login":"jefflowrey","id":5982629,"avatar_url":"https://avatars.githubusercontent.com/u/5982629?v=3","gravatar_id":"","url":"https://api.github.com/users/jefflowrey","html_url":"https://github.com/jefflowrey","followers_url":"https://api.github.com/users/jefflowrey/followers","following_url":"https://api.github.com/users/jefflowrey/following{/other_user}","gists_url":"https://api.github.com/users/jefflowrey/gists{/gist_id}","starred_url":"https://api.github.com/users/jefflowrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jefflowrey/subscriptions","organizations_url":"https://api.github.com/users/jefflowrey/orgs","repos_url":"https://api.github.com/users/jefflowrey/repos","events_url":"https://api.github.com/users/jefflowrey/events{/privacy}","received_events_url":"https://api.github.com/users/jefflowrey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-19T20:40:08Z","updated_at":"2015-08-20T16:16:47Z","closed_at":null,"body":"I'm trying to use the most recent version of this cookbook to run a container.\r\n\r\nThe image has a startup script that always runs when the container launches.  So when the docker container executes the parameter in \"command\", it actually gets passed as a parameter to the startup script.   This doesn't cause an issue, because the script ignores it's argv entirely. \r\n\r\nHowever, I'm unable to pass anything as a command.  No matter what I've tried, I keep getting \"Docker::Error::NotFoundError\", either complaining that the file doesn't exist, or that it's not in the path. \r\n\r\nThe relevant parts of the resource are \r\n        tty true\r\n        working_dir '/'\r\n        open_stdin true\r\n        env ['PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/opt/ibm/imaserver/bin']\r\n        command \"cd\"\r\n        action :run\r\n\r\nAgain, it doesn't matter what I put into command.  I've tried /usr/bin/true for example, and it still complains about no such file or directory.   And I have verified multiple times that the commands I'm referencing do exist in the specified location and are executable. \r\n\r\nI only started having this problem with this image when I upgraded to the latest version of this cookbook, that requires you specify a command on docker_container. "},"comment":{"url":"https://api.github.com/repos/bflad/chef-docker/issues/comments/133064332","html_url":"https://github.com/bflad/chef-docker/issues/377#issuecomment-133064332","issue_url":"https://api.github.com/repos/bflad/chef-docker/issues/377","id":133064332,"user":{"login":"someara","id":69068,"avatar_url":"https://avatars.githubusercontent.com/u/69068?v=3","gravatar_id":"","url":"https://api.github.com/users/someara","html_url":"https://github.com/someara","followers_url":"https://api.github.com/users/someara/followers","following_url":"https://api.github.com/users/someara/following{/other_user}","gists_url":"https://api.github.com/users/someara/gists{/gist_id}","starred_url":"https://api.github.com/users/someara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/someara/subscriptions","organizations_url":"https://api.github.com/users/someara/orgs","repos_url":"https://api.github.com/users/someara/repos","events_url":"https://api.github.com/users/someara/events{/privacy}","received_events_url":"https://api.github.com/users/someara/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T16:16:47Z","updated_at":"2015-08-20T16:16:47Z","body":"Linking to a gist/pastbin the complete stack trace from the chef-client run would be the most helpful thing. \r\n"}}