mlcommons / mlcommons/mlcube

Add support for selinux and podman to MLCube 2.0.

Open
#205 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
160
Forks
31
PR merge metrics
No merged PRs in 30d

Description

podman run --rm -ti --volume /root/mlcube_2.0/mlcube_examples/mnist/workspace/logs/:/mlcube_io2/:z --entrypoint=/bin/bash mlcommons/mnist:0.0.1

Add a ":z"option to the volume mount, which tells Podman to relabel the volume's content to match the label inside the container. And the SELinux problem is solved. Otherwise you will get "Permission denied" error when you attempt to create files in /mlcube_io2. (above).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the MLCube code that builds the shown podman run volume mount; inspect how runtime-specific commands are generated. Verify the mount includes :z for Podman/SELinux and test the resulting command against the permission-denied scenario described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python
Domain
devops, operating-systems
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.