fishilico / shared Goto Github PK
View Code? Open in Web Editor NEWtiny shared projects
License: MIT License
tiny shared projects
License: MIT License
Hi Nicolas:
I cannot seem to be able to fetch gcr images... nor a quay.io one:
$ python docker_image.py -o fetc gcr.io/distroless/static
[INFO] Downloading gcr.io/distroless/static:latest...
[ERROR] Unable to retrieve the manifest of 'gcr.io/distroless/static':'latest': HTTP error 401
[ERROR] ... Response JSON: {'errors': [{'code': 'UNAUTHORIZED', 'message': 'authentication required', 'detail': [{'Type': 'repository', 'Class': '', 'Name': 'gcr.io/distroless/static', 'Action': 'pull'}]}]}
Traceback (most recent call last):
File "docker_image.py", line 511, in <module>
main()
File "docker_image.py", line 507, in main
registry.download_image(image, tag, args.output)
File "docker_image.py", line 393, in download_image
manifest = self.get_manifest(image_name, tag_name)
File "docker_image.py", line 253, in get_manifest
raise ValueError("HTTP error {}".format(response.status_code))
ValueError: HTTP error 401
or:
$ python docker_image.py -o fetc quay.io/calico/node -l
[ERROR] Unable to retrieve the tags of image 'quay.io/calico/node': HTTP error 401
[ERROR] ... Response JSON: {'errors': [{'code': 'UNAUTHORIZED', 'message': 'authentication required', 'detail': [{'Type': 'repository', 'Class': '', 'Name': 'quay.io/calico/node', 'Action': 'pull'}]}]}
Traceback (most recent call last):
File "docker_image.py", line 511, in <module>
main()
File "docker_image.py", line 479, in main
tags = registry.list_tags(image)
File "docker_image.py", line 226, in list_tags
raise ValueError("HTTP error {}".format(response.status_code))
ValueError: HTTP error 401
If I use a vanilla docker on Ubuntu 16.04 things work OK:
$ uname -a
Linux test 4.15.0-29-generic #31~16.04.1-Ubuntu SMP Wed Jul 18 08:54:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
pombredanne@staging:~$ docker --version
Docker version 18.09.7, build 2d0083d
$ sudo docker pull gcr.io/distroless/static:latest
latest: Pulling from distroless/static
9ff2acc3204b: Pull complete
Digest: sha256:c6d5981545ce1406d33e61434c61e9452dad93ecd8397c41e89036ef977a88f4
Status: Downloaded newer image for gcr.io/distroless/static:latest
Also I am planning to reuse your fine code in this library: nexB/container-inspector#20
I can vendor (and possibly fork? it) or you could promote it as it's own top level package and repo, deployed @ Pypi? (Conan will be released at Pypi too)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.