linuxgitdockerlinux-containers

How to run 3 commands in one line in a docker


I try to run this command but i always get the message

/bin/sh -c git clone https://github.com/lordLegal/Test-repo.git; pip3 install urllib3 ; python3 -u /Test-repo/while.py

I also tryed the same thing with && instead of the ; in the command but i got the same message

So my Question is how can I fix it?

btw I try this on a docker container from alpine


Solution

  • You should put arguments between ", so your command should look like this:

    /bin/sh -c "git clone https://github.com/lordLegal/Test-repo.git; pip3 install urllib3 ; python3 -u /Test-repo/while.py"