Skip to content

docker.mk: Add Podman support and fix volume/artifact handling#1700

Open
flouthoc wants to merge 1 commit intoNVIDIA:mainfrom
flouthoc:main
Open

docker.mk: Add Podman support and fix volume/artifact handling#1700
flouthoc wants to merge 1 commit intoNVIDIA:mainfrom
flouthoc:main

Conversation

@flouthoc
Copy link

@flouthoc flouthoc commented Mar 6, 2026

  • Use $(DOCKER) for pull, build, run, images, and rmi so DOCKER=podman works
  • Default DOCKER to 'docker' in docker.mk when unset
  • Use localhost/ image prefix with Podman so run uses local image instead of pull
  • Add :z volume option with Podman for SELinux bind-mount write access
  • Create ARTIFACTS_DIR before container run to avoid missing directory errors

* Use `$(DOCKER)` for pull, build, run, images, and rmi so `DOCKER=podman` works
* Default `DOCKER` to 'docker' in docker.mk when unset
* Use localhost/ image prefix with Podman so run uses local image instead of pull
* Add `:z` volume option with Podman for SELinux bind-mount write access
* Create `ARTIFACTS_DIR` before container run to avoid missing directory errors

Signed-off-by: flouthoc <flouthoc.git@gmail.com>
@copy-pr-bot
Copy link

copy-pr-bot bot commented Mar 6, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@flouthoc
Copy link
Author

flouthoc commented Mar 6, 2026

@elezar Could you PTAL

Copy link
Member

@elezar elezar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@flouthoc thanks for the change. One thing to note is that a similar change will have to be made to libnvidia-container to build those packages.

@flouthoc
Copy link
Author

flouthoc commented Mar 9, 2026

@elezar Created a similar PR for libnvidia-container NVIDIA/libnvidia-container#359

@flouthoc flouthoc requested a review from elezar March 9, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants