I'm trying to run the following docker exec command in a bash script where I'm passing 2 parameters into the bash script. The command is supposed to delete directories that begin with a certain string. I don't seem to be passing in the parameters correctly:
$container is set to $1
$database is set to $2
$currdate is set internally in the bash script
docker exec $container sh -c 'rm -rf /path/to/directory/${database}-${currdate}-*/'