Skip to content

Instantly share code, notes, and snippets.

@gunjan5
Created February 29, 2016 23:40
Show Gist options
  • Select an option

  • Save gunjan5/78c2b3489c6967e6ef5b to your computer and use it in GitHub Desktop.

Select an option

Save gunjan5/78c2b3489c6967e6ef5b to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
image="gunjan5/onos-sr"
port_str=""
for p in 8181 8101 9876 6653 6633; do
port_str="$port_str -p $p:$p/tcp"
done
echo "Starting docker with publish port list at $port_str"
docker run -itd $port_str $image /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment