Back to front pageView on Hacker News (opens in a new tab)Show HN: Bocker – Docker implemented in 100 lines of bash (opens in a new tab)github.com662 pointsby p8952 (on Hacker News)11 years agogithub.com (opens in a new tab)GitHub - p8952/bocker: Docker implemented in around 100 lines of bashDocker implemented in around 100 lines of bash. Contribute to p8952/bocker development by creating an account on GitHub.Comments (87) 26 threadsShow all commentsShowing thread 3 of 26[-]tlrobinson11 years ago2 replies#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[-]p895211 years ago1 reply#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.tlrobinson11 years ago#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.CSDude11 years ago#There are some images still in registry v1, I recon a problem like that where it gives you another URL
Show HN: Bocker – Docker implemented in 100 lines of bash (opens in a new tab)github.com662 pointsby p8952 (on Hacker News)11 years ago
tlrobinson11 years ago2 replies#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
p895211 years ago1 reply#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.
tlrobinson11 years ago#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.
CSDude11 years ago#There are some images still in registry v1, I recon a problem like that where it gives you another URL
Comments (87) 26 threads
Show all comments
Showing thread 3 of 26
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.
I think the v2 API requires hitting an auth endpoint too.