title: Why does Docker say it can't execute 'bash"?
body: <p>I'm using Docker on MacOSX (with Boot2Docker).</p>
  
  <p>I can run images from Docker Hub.</p>
  
  <p>However, when I try to run one of my own images like this:</p>
  
  <pre><code>docker run -P mylocalimage
  </code></pre>
  
  <p>or</p>
  
  <pre><code>docker run -P mylocalimage bin/a3-write-back
  </code></pre>
  
  <p>or</p>
  
  <pre><code>...
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>docker "env: can't execute 'bash': No such file or directory"
  </code></pre>
  
  <p>I guess that it can't find a bash binary to execute in the container, but why?</p>
  
  <p>The base image is <code>errordeveloper/oracle-jdk</code></p>
  
  <p>Thanks for any help.</p>
  
  <p>Ashley.</p>
  
  <pre><code>[{
      "Architecture": "amd64",
      "Author": "ABC email@email.com",
      "Checksum": "tarsum.dev+sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "Comment": "",
      "Config": {
          "AttachStderr": false,
          "AttachStdin": false,
          "AttachStdout": false,
          "Cmd": [],
          "CpuShares": 0,
          "Cpuset": "",
          "Domainname": "",
          "Entrypoint": [
              "bin/a3-write-back"
          ],
          "Env": [
              "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/jdk1.8.0_25/bin",
              "JAVA_HOME=/usr/jdk1.8.0_25"
          ],
          "ExposedPorts": null,
          "Hostname": "5bf0de3d0926",
          "Image": "abd65ce243a5b015bb49f3e958103a5cc0c5f14938df4e480ded25f3ecf878e7",
          "MacAddress": "",
          "Memory": 0,
          "MemorySwap": 0,
          "NetworkDisabled": false,
          "OnBuild": [],
          "OpenStdin": false,
          "PortSpecs": null,
          "StdinOnce": false,
          "Tty": false,
          "User": "daemon",
          "Volumes": null,
          "WorkingDir": "/opt/docker"
      },
      "Container": "987d2279b6e42195fe8e732c0637798926db6cfaeab93fcc25a3f10dac73f111",
      "ContainerConfig": {
          "AttachStderr": false,
          "AttachStdin": false,
          "AttachStdout": false,
          "Cmd": [
              "/bin/sh",
              "-c",
              "#(nop) CMD []"
          ],
          "CpuShares": 0,
          "Cpuset": "",
          "Domainname": "",
          "Entrypoint": [
              "bin/a3-write-back"
          ],
          "Env": [
              "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/jdk1.8.0_25/bin",
              "JAVA_HOME=/usr/jdk1.8.0_25"
          ],
          "ExposedPorts": null,
          "Hostname": "5bf0de3d0926",
          "Image": "abd65ce243a5b015bb49f3e958103a5cc0c5f14938df4e480ded25f3ecf878e7",
          "MacAddress": "",
          "Memory": 0,
          "MemorySwap": 0,
          "NetworkDisabled": false,
          "OnBuild": [],
          "OpenStdin": false,
          "PortSpecs": null,
          "StdinOnce": false,
          "Tty": false,
          "User": "daemon",
          "Volumes": null,
          "WorkingDir": "/opt/docker"
      },
      "Created": "2015-01-13T05:25:38.467586784Z",
      "DockerVersion": "1.4.1",
      "Id": "ddbd5d3f52cc5fd41605c95e4525cd2f3e0808a3741b3f8d77f46f0661945f7b",
      "Os": "linux",
      "Parent": "abd65ce243a5b015bb49f3e958103a5cc0c5f14938df4e480ded25f3ecf878e7",
      "Size": 0,
      "VirtualSize": 390826666
  }
  ]
  </code></pre>