NVIDIA / pyxis

Container plugin for Slurm Workload Manager
Apache License 2.0
282 stars 31 forks source link

document how to use enroot `.credentials` #89

Closed ltalirz closed 1 year ago

ltalirz commented 2 years ago

enroot offers the option to deposit credentials for a container registry in a .credentials file, which needs to be placed in the ENROOT_CONFIG_PATH directory.

I have prepared such a file and am able to successfully enroot import docker://registry#image from this registry.

However, when using srun --container-image registry#image it appears the .credentials file is ignored (e.g. [INFO] Authenticating with user does not pick up the correct username from the .credentials file). I've tried explicitly --exporting the ENROOT_CONFIG_PATH variable via srun, but this did not fix the problem.

What is the recommended way for authenticating with a private registry with the pyxis plugin?

flx42 commented 2 years ago

This should work fine, is it picking the right file for the credentials?

ltalirz commented 1 year ago

I can no longer reproduce this issue. When using export ENROOT_CONFIG_PATH=... before using srun, pyxis 0.12 (with enroot 0.4.1) is able to authenticate with the container registry.