error unrecognized arguments : nohup in docker

Viewed 34

I am running my tests from inside a docker container . List line in Dockerfile is

CMD ["nohup","/bin/scripts/run_test.sh","&"]

This causes the docker to terminate with the error as below

 2022-09-07 16:13:48,626 - sinit - DEBUG - simple_init.py logger configured
    usage: simple_init.py [-h] [-t TIMEOUT] [-v] [-f]
    simple_init.py: error: unrecognized arguments: nohup /bin/scripts/run_test.sh &

Putting nohup is necessary for me as this process ends without doing the needful job completely, if I don't put nohup.

The command looks fine to me in general, what might be causing this issue ?

P.S : As of now I do not have , an ENTRYPOINT , earlier I had same command (without & in the end )configured as ENTRYPOINT , but it does not run the jar inside the container till it performs the desired operation whereas without being contanerized it works as expected , so some where docker is killing the operation earlier than expected.

0 Answers
Related