I’ve got a container with a single executable (c++) in it (created from the scratch image) and it’s dependencies located in /usr/lib. When I run the container with “docker run -ti img_name” I get the following output:
no such file or directory
Error response from daemon: Cannot start container ccca56c522d3d529254f080099846fc62bacdb2687b4ef559038b2f873a049cd:  System error: no such file or directory
Here is what my Dockerfile looks like:
COPY main /usr/local/bin/main
COPY fs /
It would be really helpful if it could tell me what file it couldn’t find without having to resort to strace. The “main” program runs fine when statically linked, or when added to a full blown image like ubuntu.