Skip to content

Commit

Permalink
Merge pull request #797 from fabiendupont/nvidia-bootc-fix-shared-sto…
Browse files Browse the repository at this point in the history
…rage

NVIDIA bootc - Shared container storage fix
  • Loading branch information
rhatdan authored Oct 2, 2024
2 parents 33f0d6c + 4ef60bd commit aaedd71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion training/nvidia-bootc/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ VOLUME /var/lib/containers

RUN --mount=type=secret,id=${INSTRUCTLAB_IMAGE_PULL_SECRET}/.dockerconfigjson \
if [ -f "/run/.input/instructlab-nvidia/oci-layout" ]; then \
IID=$(podman --root /usr/lib/containers/storage pull oci:/run/.input/instructlab-nvidia) && \
IID=$(podman --root /usr/lib/containers/storage --storage-opt overlay.force_mask=shared pull oci:/run/.input/instructlab-nvidia) && \
podman --root /usr/lib/containers/storage --storage-opt overlay.force_mask=shared image tag ${IID} ${INSTRUCTLAB_IMAGE}; \
elif [ -f "/run/secrets/${INSTRUCTLAB_IMAGE_PULL_SECRET}/.dockerconfigjson" ]; then \
IID=$(sudo podman --root /usr/lib/containers/storage pull --storage-opt overlay.force_mask=shared --authfile /run/secrets/${INSTRUCTLAB_IMAGE_PULL_SECRET}/.dockerconfigjson ${INSTRUCTLAB_IMAGE}); \
Expand Down

0 comments on commit aaedd71

Please # to comment.