So say I have a bash script that takes two arguments.
./myBash.sh 123 "123123"
Cool we can do something like
index=$1
location=$2
How do I use those arguments in a docker command within myBash.sh
like:
docker exec myDockerContainer_1 bash -c 'myMigrationScript --pw=$location --pwOld=1234 --indexToStartAt=$index'
But this doesn't seem to work? The variables do not get carried over inside the docker container?