From 24496d0dc06d6b61d3336e53991fec6ead424da9 Mon Sep 17 00:00:00 2001 From: Brady-Malott <55215446+Brady-Malott@users.noreply.github.com> Date: Fri, 17 Feb 2023 23:09:22 -0500 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index b0e0832..b68716c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,7 +12,7 @@ pipeline { // Stop running microblog container sh 'docker stop $(docker ps -q --filter ancestor=microblog:latest) || true && docker rm $(docker ps -q --filter ancestor=microblog:latest) || true' // Prune old containers that are not running - sh 'docker container prune' + sh 'echo y | docker container prune' // Deploy new container sh 'docker run --name microblog -d -p 5000:5000 --rm microblog:latest' }