Menu Close

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

Considering donating if you found my post helpful ๐Ÿ˜Š

Buy Me a Coffee QR Code

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.

Considering donating if you found my post helpful ๐Ÿ˜Š

Buy Me a Coffee QR Code
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x