Menu Close

[Dockerfile] standard_init_linux.go:211: exec user process caused “no such file or directory”

I spent a few hours today learning on how to build a docker container. Most of the time spent on mounting volumes. But an error came out of nowhere with not being helpful at all.

standard_init_linux.go:211: exec user process caused "no such file or directory"

Turned out it was the first line of my shell script

#!/bin/bash

The correct one should be

#!/bin/sh

Hope this helps.

Leave a Reply

Your email address will not be published. Required fields are marked *