Skip to content

Commit 14bfc4e

Browse files
babykartedannenberg
authored andcommitted
Revert libpod handling for image pruning #179 #160
>=libpod-1.8.0 now supports the -f argument for image prune
1 parent b9c04ac commit 14bfc4e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

engine/docker.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,8 @@ function build_image() {
283283
_status_msg="tag image ${image_id}:latest"
284284
pwrap 'nolog' "${DOCKER}" tag "${image_id}:${IMAGE_TAG}" "${image_id}:latest" || die "${_status_msg}"
285285

286-
local prune_args
287-
prune_args=()
288-
[[ "${DOCKER}" == 'docker' ]] && prune_args+=( '-f' )
289-
290286
[[ "${KUBLER_POSTBUILD_IMAGE_PRUNE}" == 'true' ]] \
291-
&& _status_msg="remove untagged images" && pwrap "${DOCKER}" image prune "${prune_args[@]}"
287+
&& _status_msg="remove untagged images" && pwrap "${DOCKER}" image prune -f
292288

293289
[[ "${KUBLER_POSTBUILD_VOLUME_PRUNE}" == 'true' ]] \
294290
&& _status_msg="remove unused volumes" && pwrap "${DOCKER}" volume prune -f

0 commit comments

Comments
 (0)