NVIDIA / enroot

A simple yet powerful tool to turn traditional container/OS images into unprivileged sandboxes.
Apache License 2.0
622 stars 94 forks source link

[ERROR] URL https://nvcr.io/proxy_auth returned error code: 401 Unauthorized #161

Open starlitsky2010 opened 1 year ago

starlitsky2010 commented 1 year ago

Hi NVIDIA,

Install enroot method:

arch=$(dpkg --print-architecture)
curl -fSsL -O https://github.com/NVIDIA/enroot/releases/download/v3.4.1/enroot_3.4.1-1_${arch}.deb
curl -fSsL -O https://github.com/NVIDIA/enroot/releases/download/v3.4.1/enroot+caps_3.4.1-1_${arch}.deb # optional
sudo apt install -y ./*.deb

It could run normally with commands below:

# Import and start an Ubuntu image from DockerHub
$ enroot import docker://ubuntu
$ enroot create ubuntu.sqsh
$ enroot start ubuntu

But when I try this usage command, it failed.

enroot# enroot import 'docker://$oauthtoken@nvcr.io#nvidia/cuda:10.0-base'
[INFO] Querying registry for permission grant
[INFO] Authenticating with user: $oauthtoken
[INFO] Using credentials from file: /root/.config/enroot/.credentials
[ERROR] URL https://nvcr.io/proxy_auth returned error code: 401 Unauthorized

Thanks Aaron

3XX0 commented 1 year ago

Check that your configuration is correct and that your token hasn't expired. See https://github.com/NVIDIA/enroot/blob/master/doc/cmd/import.md#description for configuring your /root/.config/enroot/.credentials file