Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- docker build -t album-docker
- if [[ $1 =~ ^[0-9]+$ ]];then
- puerto="--p $1:80"
- else
- echo "El puerto debe ser un numero entero menor a 65000."
- fi
- name="--name $2"
- docker run -d ${name} ${puerto} album-docker
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement