Giter VIP home page Giter VIP logo

Comments (4)

ollypom avatar ollypom commented on August 11, 2024

Hey @debajyoti-truefoundry , you are attempting to use the root user to push the Index with sudo soci push, therefore the Docker credentials file would need to be the root users (/root/.docker/) not your current users (/home/debajyotichatterjee/.docker/).

Therefore you need to either copy the credentials file over to the root user (/root/.docker/), or you set the DOCKER_CONFIG environmental variable for the root user. For example you could use sudo DOCKER_CONFIG=/home/debajyotichatterjee/.docker/ soci push...

from soci-snapshotter.

debajyoti-truefoundry avatar debajyoti-truefoundry commented on August 11, 2024

Hey @debajyoti-truefoundry , you are attempting to use the root user to push the Index with sudo soci push, therefore the Docker credentials file would need to be the root users (/root/.docker/) not your current users (/home/debajyotichatterjee/.docker/).

Therefore you need to either copy the credentials file over to the root user (/root/.docker/), or you set the DOCKER_CONFIG environmental variable for the root user. For example you could use sudo DOCKER_CONFIG=/home/debajyotichatterjee/.docker/ soci push...

Hey @ollypom, I missed adding it in the issue description, but I already had the env var set.

debajyotichatterjee@lima-ubuntu-lts:/Users/debajyotichatterjee/work/start-containers-fast/aws$ ls /home/debajyotichatterjee.linux/.docker/
config.json
debajyotichatterjee@lima-ubuntu-lts:/Users/debajyotichatterjee/work/start-containers-fast/aws$ echo $DOCKER_CONFIG
/home/debajyotichatterjee.linux/.docker/
debajyotichatterjee@lima-ubuntu-lts:/Users/debajyotichatterjee/work/start-containers-fast/aws$ sudo soci -a /proc/3072/root/run/containerd/containerd.sock --debug push public.ecr.aws/redacted/jupyter-full-soci-deb:not-full-0.2.6
checking if a soci index already exists in remote repository...
...
skipped artifact with digest: sha256:0e22f528315c2b39ffe91b5608f951ee490ef6968ab73d58e82c959dd680ea49
http req HEAD https://public.ecr.aws/v2/redacted/jupyter-full-soci-deb/blobs/sha256:6886c97c612bffd2ebb077e94c650073eaa4ee9b0745f078b43726202076ef98
http res 401 Unauthorized
...
...
soci: error pushing graph to remote: HEAD "https://public.ecr.aws/v2/redacted/jupyter-full-soci-deb/blobs/sha256:0215741d981c64c41c6f41fa4c767cf31aa1d79288781cebb68dc4f02660c47b": response status code 401: Unauthorized

from soci-snapshotter.

ollypom avatar ollypom commented on August 11, 2024

Thanks for the additional detail, but you have set the environment variable for your user (debajyotichatterjee) not the root user used with sudo soci. To see if that environment is set for the root user sudo env | grep DOCKER_CONFIG.

In the example I gave above I am setting the environment variable for the root user with sudo DOCKER_CONFIG=/home/debajyotichatterjee/.docker/ soci push...

from soci-snapshotter.

debajyoti-truefoundry avatar debajyoti-truefoundry commented on August 11, 2024

DOCKER_CONFIG=/home/debajyotichatterjee/.docker/ soci push

Thanks a lot for guiding me through this. It works now for me. I lacked an understanding of how sudo works. I will close this issue.

from soci-snapshotter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.