Comment on Show HN: Bocker – Docker implemented in 100 lines of bashComments−tlrobinson11yHere's a proof-of-concept implementation of "docker pull" in bash (YMMV, I think it has broken since I wrote it): https://gist.github.com/tlrobinson/c85dca269f4405ad4201−p8952OP11yLooks good!I'd marked 'docker pull' as out of scope because I thought it would be fairly hard to interface with their API from bash, looks like I was wrong.−tlrobinson11yThe only hard bit is parsing the JSON, which I use jq for (http://stedolan.github.io/jq/)I think the v2 API requires hitting an auth endpoint too.−CSDude11yThere are some images still in registry v1, I recon a problem like that where it gives you another URL
Comments
Here's a proof-of-concept implementation of "docker pull" in bash (YMMV, I think it has broken since I wrote it): https://gist.github.com/tlrobinson/c85dca269f4405ad4201
Looks good!
I'd marked 'docker pull' as out of scope because I thought it would be fairly hard to interface with their API from bash, looks like I was wrong.
The only hard bit is parsing the JSON, which I use jq for (http://stedolan.github.io/jq/)
I think the v2 API requires hitting an auth endpoint too.
There are some images still in registry v1, I recon a problem like that where it gives you another URL