I’m trying to run MULTIPLE commands like this.

docker run image cd /path/to/somewhere && python a.py

But this gives me “No such file or directory” error because it is interpreted as…

"docker run image cd /path/to/somewhere" && "python a.py"

It seems that some ESCAPE characters like “” or () are needed.

So I also tried

docker run image "cd /path/to/somewhere && python a.py"
docker run image (cd /path/to/somewhere && python a.py)

but these didn’t work.

I have searched for Docker Run Reference but have not find any hints about ESCAPE characters.

9 Answers
9

Leave a Reply

Your email address will not be published. Required fields are marked *