From 4636152d1f5798576820fec8aa9a3a06eee8d181 Mon Sep 17 00:00:00 2001 From: falconlee236 Date: Thu, 7 Nov 2024 16:03:05 +0900 Subject: [PATCH] Update Jenkinsfile : change prune command --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 865a658..099c42d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -86,7 +86,7 @@ pipeline { script { sshagent(credentials: ['EC2_SSH']) { sh 'ssh -o StrictHostKeyChecking=no ubuntu@${AWS_PUBLIC_URL} "docker run -p 3030:3030 --name $CONTAINER_NAME -d ${DOCKER_IMAGE}"' - sh 'ssh -o StrictHostKeyChecking=no ubuntu@${AWS_PUBLIC_URL} "docker image prune --force"' + sh 'ssh -o StrictHostKeyChecking=no ubuntu@${AWS_PUBLIC_URL} "docker system prune --force --all --volumes"' } }