til

Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as an open source contributor and product manager

View project on GitHub

Exec Error

I was attempting to build a basic Docker container when I observed the following error:

OCI runtime create failed: container_linux.go:349

So I googled and found no exact matches, I guess line 349 is sort of a moving taget, so I picked the first link in the result set.

The solution was basically, missing execute bit on my ENTRYPOINT

Easy solution:

$ chmod +x entrypoint.sh

But the need for the script to be executable on the host system, might vary, so instead I added the followin to my Dockerfile

RUN chmod +x /entrypoint.sh

This does the job just as good, but does possibly add more build time to your Docker build, so pick the solution that suits your needs.

Resources and References