之停止即将运行的image失败,回溯一下
parent
951e05db47
commit
f475915ab6
|
@ -18,7 +18,7 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
echo 'Building..'
|
echo 'Building..'
|
||||||
sh 'sudo docker build -t englishpalzhangxf .'
|
sh 'sudo docker build -t englishpalzhangxf .'
|
||||||
sh 'sudo docker stop englishpalzhangxf'
|
sh 'sudo docker stop $(docker ps -aq)'
|
||||||
sh 'sudo docker run -d -p 5000:80 -v /var/lib/jenkins/workspace/EnglishPal_Pipeline_master/app/static/frequency:/app/static/frequency -t englishpalzhangxf'
|
sh 'sudo docker run -d -p 5000:80 -v /var/lib/jenkins/workspace/EnglishPal_Pipeline_master/app/static/frequency:/app/static/frequency -t englishpalzhangxf'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue