Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bocker pull does not support public registry, can't pull from there anymore #26

Open
zoobab opened this issue Jan 13, 2017 · 8 comments

Comments

@zoobab
Copy link

zoobab commented Jan 13, 2017

bocker pull does not support public registry, can't pull from there anymore.

The api has switched to v2, and the v1 does not seem to work anymore...

@pwFoo
Copy link

pwFoo commented Mar 7, 2019

Should be fixed with the updated version here?
https://github.com/frohoff/bocker

@pwFoo
Copy link

pwFoo commented Mar 7, 2019

But the bocker version with fixed pull from @frohoff has more dependencies!
https://github.com/frohoff/bocker/blob/master/bocker#L25

And download-frozen-image-v2 needs curl, go and jq...
https://github.com/moby/moby/blob/master/contrib/download-frozen-image-v2.sh#L11

Is there a way to download and extract docker images without so much dependencies?

@tst2005
Copy link

tst2005 commented Mar 8, 2019

if the go command is only use to detect the current OS, it could be replaced by uname (or uname -s).

@pwFoo
Copy link

pwFoo commented Mar 8, 2019

@tst2005
Good point!
OS and ARCH

curl would be ok.

What's about jq (3,77MB binary linux64)

[EDIT]
Is there a simple bash script to download a docker image from a shell without dependencies?
Searched for a simple way to download an image...
[/EDIT]

@tst2005
Copy link

tst2005 commented Mar 8, 2019

IMHO,

  • s/without dependencies/with a few dependencies/
  • jq is a very powerfull utility to process json data. It is hard to deal with json without it. I don't know alternative or pure bash implementation

@axgkl
Copy link

axgkl commented Mar 18, 2019

This downloads from v2, based on the moby one but w/o go (hardcoded amd64) and jq (this was hard) deps.

@pwFoo
Copy link

pwFoo commented Mar 18, 2019

@axgkl
You should add python in dependency check?
https://gist.github.com/AXGKl/9acf71366348e0ab0b85dd9258374792#file-docker_image_downloader-sh-L13

Python should be pre-installed with centos, but needs to be installed with other os variants?

@NoseyNick
Copy link

I was about to suggest...

awk -F ': *' '$1 == "X-Docker-Token" { print $2 }'

needs to be case-insensitive:

awk -F ': *' 'tolower($1) == "x-docker-token" { print $2 }'

... but yeah nah, this goes deeper, needs the v2 API 😐

Can borrow from https://github.com/jjlin/docker-image-extract ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants