I have a Dockerfile that looks like this:
FROM image
WORKDIR /App
ADD ./App/ /App
ENTRYPOINT [ "./App" ]
In the App direction I am mounting a golang binary and its config.yml.
The image builds and runs correctly. When I am not running the container detached I can see the app is running as well.
But when I run it detached:
docker run -d image
I cannot exec into container after:
docker exec -it container bin/bash
With an error message:
OCI runtime exec failed: exec failed: container_linux.go:345: starting container process caused "exec: \"bin/bash\": stat bin/bash: no such file or directory": unknown
I can understand it has to do with the entrypoint I set, but i am not sure what alternative i could use.
Any ideas?