Skip to content

Commit

Permalink
fix: docker bind mount
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Klick <[email protected]>
  • Loading branch information
nathanklick committed Mar 23, 2024
1 parent 63f5008 commit c539350
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ start_group "Configuring Environment"
start_task "Resolving the Docker Client Configuration"
SKOPEO_BIND_MOUNT=""
SKOPEO_CREDENTIAL_OPTS=""
DOCKER_CONFIG_FILE="${HOME}/.docker/config"
DOCKER_CONFIG_FILE="${HOME}/.docker"
if [[ -f "${DOCKER_CONFIG_FILE}" ]]; then
SKOPEO_BIND_MOUNT="--volume ${DOCKER_CONFIG_FILE}:/etc/containers/auth.json"
SKOPEO_CREDENTIAL_OPTS="--authfile /etc/containers/auth.json"
SKOPEO_BIND_MOUNT="--volume ${DOCKER_CONFIG_FILE}:/tmp/docker"
SKOPEO_CREDENTIAL_OPTS="--authfile /tmp/docker/config.json"
fi
export SKOPEO_BIND_MOUNT SKOPEO_CREDENTIAL_OPTS
end_task "DONE"
Expand Down

0 comments on commit c539350

Please sign in to comment.