Trying to automate two docker commands as a script in CMD

  • Issue type:Automation

  • OS Version/build: Windows 10 Home

  • App version : Docker Toolbox

  • Steps to reproduce/Details:

Hi,

I need help with following commands to put in script at CMD. I have all setup for docker.

  1. Runs at CMD:

docker run --net=host --interactive --tty auvsisuas/interop-client

  1. Runs at # on CMD screen

./tools/interop_cli.py --url http://10.10.130.2:8000/ --username testuser --password testpass missions

Reference : https://github.com/auvsi-suas/interop/wiki/Getting-Started

If I run individual commands in CMD one after another it works and gives me output. But when I put in script (.bat) file, it only runs 1st command after which # prompt appears on screen but 2nd command does not execute.

What I need:clear

Script to run Both commands together from CMD

Note: The image is publicly available, so you can try it on your own setup.

This is what it should look like (This is when I write commands directly in cmd):

Any help would be much appreciated.

Parimal

This is my cmd/bat file:

This is what happens: