restart script for the docker image stoping/building/launching

This commit is contained in:
Jordi Montes 2018-01-17 16:50:45 +00:00
parent 5b613d0324
commit 96ebc1d70f

6
restart.sh Executable file
View File

@ -0,0 +1,6 @@
CONTAINER_ID="$(docker ps -lq)"
docker stop ${CONTAINER_ID}
docker build -t autobounty .
sudo docker run -d -p 8080:8080 autobounty &