archedraft Posted November 21, 2015 Share Posted November 21, 2015 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. Quote Link to comment
archedraft Posted November 21, 2015 Author Share Posted November 21, 2015 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)" Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.