mlcube icon indicating copy to clipboard operation
mlcube copied to clipboard

Add support for selinux and podman to MLCube 2.0.

Open dfeddema opened this issue 4 years ago • 2 comments

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).

dfeddema avatar Sep 30 '21 16:09 dfeddema

Maybe worth using Udica?

bkmgit avatar Apr 11 '22 05:04 bkmgit

Maybe Podman should have its own configuration? WIP https://github.com/mlcommons/mlcube/pull/232

bkmgit avatar Apr 11 '22 05:04 bkmgit