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.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x