Git Product home page Git Product logo

shared's People

Contributors

fishilico avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

shared's Issues

Cannot fetch gcr.io image with docker_image.py

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)

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.