Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- image=${1}
- host=top_bind
- work_path="$(pwd)"
- zone_volume="${work_path}/zones:/etc/bind/zones"
- if [ ! "$#" -eq 1 ]; then
- echo -e "Please keyin docker image name after $0"
- else
- echo -e "docker run -d -h ${host} -v ${zone_volume} -p 5000:22 -p 53:53/udp ${image}"
- docker run -d -h ${host} -v ${zone_volume} -p 5000:22 -p 53:53/udp ${image}
- fi
- #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