title: Attaching to a docker container with base image scratch?
body: <p>I have a docker file as follows: </p>
  
  <pre><code>FROM scratch
  
  ARG VERSION=NOT_SET
  ENV VERSION $VERSION
  
  COPY foobar foobar
  COPY foobar-*.yaml /etc/
  COPY jwt/ /etc/jwt/
  
  EXPOSE 8082
  
  ENTRYPOINT ["./foobar"]
  CMD ["-config", "/etc/foobar-local.yaml"]
  </code></pre>
  
  <p>Now, docker ps shows the following:</p>
  
  <pre><code>CONTAINER ID        IMAGE                                                               COMMAND                  CREATED              STATUS              PORTS                         NAMES
  653a9b287eb6        7693481.dkr.ecr.us-east-1.amazonaws.com/foobar:0.0.1           "./foobar -config /e"   About a minute ago   Up About a minute                                 foobar
  </code></pre>
  
  <p>When I try to exec to this container with the following command: </p>
  
  <pre><code>sudo docker exec -it 653a9b287eb6 /bin/bash
  </code></pre>
  
  <p>it shows the following error: </p>
  
  <pre><code>rpc error: code = 2 desc = oci runtime error: 
  exec failed: exec: "/bin/bash": stat /bin/bash: no such file or directory
  </code></pre>