I am trying to issue command docker stop $(docker ps -a -q)
over ssh, using Python's paramiko package
stdin,stdout,stderr = ssh_client.exec_command('docker stop $(docker ps -a -q)');
print stderr.readlines()
I get an error Illegal variable name
. I tried putting in double quote (""), escape the $, (, ) ... but running out of ideas