Skip to content

Commit

Permalink
Merge pull request containers#11099 from edsantiago/podman_registry_t…
Browse files Browse the repository at this point in the history
…weak

podman-registry: minor usability updates
  • Loading branch information
openshift-ci[bot] authored Aug 2, 2021
2 parents 58cdb32 + 03ffba2 commit d25f8d0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hack/podman-registry
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ME=$(basename $0)
###############################################################################
# BEGIN defaults

PODMAN_REGISTRY_IMAGE=docker.io/library/registry:2.6
PODMAN_REGISTRY_IMAGE=quay.io/libpod/registry:2.6

PODMAN_REGISTRY_USER=
PODMAN_REGISTRY_PASS=
Expand Down Expand Up @@ -117,7 +117,7 @@ function must_pass() {

# If we ever get here, it's a given that the registry is not running.
# Clean up after ourselves.
rm -rf ${PODMAN_REGISTRY_WORKDIR}
${PODMAN} unshare rm -rf ${PODMAN_REGISTRY_WORKDIR}
exit 1
fi
}
Expand Down Expand Up @@ -214,7 +214,8 @@ function do_stop() {
podman stop registry
podman rm -f registry

rm -rf ${PODMAN_REGISTRY_WORKDIR}
# Use straight podman, not our alias function, to avoid 'overlay: EBUSY'
${PODMAN} unshare rm -rf ${PODMAN_REGISTRY_WORKDIR}
}


Expand Down

0 comments on commit d25f8d0

Please sign in to comment.