Input:
- There is Windows machine with Docker Toolbox installed.
- There is a shell script file baz.sh which calls py2dsc-deb.
Problem: py2dsc-deb is not available on Windows.
As I understand correctly, I can pull some Linux distro image from Docker repository, create a container and then execute shell-script file and it will run py2dsc-deb and do its job.
I have pulled:
debian - stretch-slim - 3ad21 - 3 weeks ago - 55.3MB
Now
How do I run my script using
debian, something like:docker exec mycontainer /path/to/test.sh?Running
docker --rm debian:stretch-slimdoes nothing. Doesn't it suppose to run Debian distro atdocker-machine ip?I have tried to keep the container up using
docker run -it debian:stretch-slim /bin/bash, then run the script usingdocker exec 1ef5b ./build.sh, but getting
$ docker exec 745 ./build.sh rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:247: starting container process caused "exec: \"./build.sh\": stat ./build.sh: no such file or directory"
Does it mean I can't run external script and has to always pass it inside the Docker?