I want to copy local script files to a remote host and run one of them. On a local host I would use these commands:
docker run -d python tail -f /dev/null
docker cp ./ <id>:/usr/local/bin/
docker exec <id> python /usr/local/bin/script.py
I'd like to add an additional command specifying IP and port of a remote machine
The official site suggests to use curl. There is a list of docker clients, but all of them are supposed to be used programmatically.
I'd prefer to run those commands from console or, to put them into a .bat
file. Why is there an additional level of complexity introduced by curl/ setting a project in some language to run three commands? Does docker-toolbox allow to execute commands on a remote host?