Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #!/bin/bash
  2. image=${1}
  3. host=top_bind
  4. work_path="$(pwd)"
  5. zone_volume="${work_path}/zones:/etc/bind/zones"
  6.  
  7. if [ ! "$#" -eq 1 ]; then
  8. echo -e "Please keyin docker image name after $0"
  9. else
  10. echo -e "docker run -d -h ${host} -v ${zone_volume} -p 5000:22 -p 53:53/udp ${image}"
  11. docker run -d -h ${host} -v ${zone_volume} -p 5000:22 -p 53:53/udp ${image}
  12. fi
  13.  
  14. #docker run -d -h top_bind -v /home/administrator/Dockers/bind-server/zones:/etc/bind/zones -p 5000:22 -p 53:53/udp top_bind-20150603:data
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement