Execute sh script during startup

Hello all,

I’m complete new to docker and trying to make my first image.

the script is installing and copying files to the needed locations and finishes correctly.
But when I launch it i get the following error:

standard_init_linux.go:195: exec user process caused “exec format error”

When I remark the CMD command and launch the container its running and I can launch the command without any problem.

I think the issue is in my start.sh but I can’t find a solution.

this is what i have in my start.sh
/opt/dbforbix/dbforbix.sh start

can any one assist?

Rgds,

John

what does your cmd= look like?

Hi Sam,

my cmd look like this

CMD ["./start.sh"]

rgds,

John

this CMD just could work, if the entrypoint is “sh” or another shell.

If you need additional help, I guess, you need to publish your whole Dockerfile.