Comments (4)
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.
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 theDOCKER_CONFIG
environmental variable for the root user. For example you could usesudo 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.
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.
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)
- [Bug] Container Ephemeral storage limit is not enforced when using SOCI Snapshotter. HOT 3
- [Bug] Extracting binaries of 0.5.0 requires the use of ./ prefix
- [FEATURE] Centralize our CLI Documentation HOT 1
- [FEATURE] Don't make registry calls when content has completed fetching HOT 2
- [Bug] Max concurrent uploads flag is unused HOT 2
- [Doc] Document zInfo binary format and implementation details HOT 1
- [Bug] ECR reauthentication on 403 does not seem to work HOT 7
- Update registry container image to v3.0.0
- [Bug] TestFuseOperationFailureMetrics fails on ARM64 HOT 1
- Return errors when creating SpanManager
- Switch to Alpine base for container images in integration tests
- [FEATURE] Set image tag when pushing a Soci index and an image index
- [FEATURE] Update docs/makefile for `command not found` after `make install` HOT 2
- [Bug] sh.R leaves open pipes HOT 2
- [FEATURE] Clean up integration test artifacts
- [Bug] Incorrect formatting for digest in SOCI index remove
- [FEATURE] Add test for container starting without internet access
- [FEATURE] Create ztoc in a single pass
- [Bug] SOCI snapshotter not working insecure container registry HOT 2
- [Bug] xattrs cannot be disabled on layers with volume mounts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soci-snapshotter.