November 21, 201510 yr I am wanting to run multiple commands with a script that will update ports within a docker container. Here is a sample of what I am trying to run: docker exec -i deluge deluge-console (Now issue $1) (then issue $2) (then command $3) $1=connect localhost user pass $2=config --set random_port False $3=config --set listen_ports (12345,12345) Is it possible to do this with docker containers? I can run these one by one within a ssh session. I think the main challenge is the deluge-console brings up a program and once the deluge-console screen is up it needs to run the 3 commands.
November 21, 201510 yr Author Turns out just needed proper syntax for deluge-console docker exec -i deluge deluge-console "connect localhost user pass; config --set random_port False; config --set listen_ports (12345,12345)"
Archived
This topic is now archived and is closed to further replies.