Live data from Hacker News

Bocker: Docker implemented in around 100 lines of Bash (2015)

github.com

71–80 of 118 posts

Re: Bocker: Docker implemented in around 100 lines of Bash (2015)

#72
post #16

Earlier quoted context omitted.

If Docker isn't open enough for you, check out Podman (now with extra CNCF).

how is docker open in any way? https://i.imgur.com/2F0JmUw.png

That service agreement is for using the Docker Desktop GUI tool which isn't open source (though free to use for small businesses etc) whereas the basic docker CLI commands are all open source.

Re: Bocker: Docker implemented in around 100 lines of Bash (2015)

#73

I wonder why Bocker makes the frontpage so often. Is Docker still that controversial even in 2024? Why people don't recognize that it actually brought something useful (mainly, software distribution and easy of "run everywhere") to the table?

It's possible it's not climbing the front page to slight docker, but rather that people are seeing that docker is something useful and want to know how it works. Bocker can be an entrypoint into the technologies.

Re: Bocker: Docker implemented in around 100 lines of Bash (2015)

#74

I wonder why Bocker makes the frontpage so often. Is Docker still that controversial even in 2024? Why people don't recognize that it actually brought something useful (mainly, software distribution and easy of "run everywhere") to the table?

It's just a learning tool to see how docker works.

Docker is just a combination of kernel tech that already exists. Namespaces, cgroups, and union file systems and probably few others.

Re: Bocker: Docker implemented in around 100 lines of Bash (2015)

#75
post #56

I did something (slightly) similar via proot, called Bag [1], which I must have not described as a docker alternative: It has nothing to do with cgroups, and the cli deviates from that of docker's. The backstory: To bypass internet censorship and deep packet inspection, I had written a proxy chain solution masquerading itself as plain html traffic. I needed it constantly running everywhere I went, but I didn't want t…

FYI, I think you forgot some important quotes in your script. Try shellcheck? > mkdir -p $(dirname "$2")

That'll handle whitespace in paths, but if you want it to handle all path characters, dirname and mkdir need "--" here too.

Re: Bocker: Docker implemented in around 100 lines of Bash (2015)

#76

I wonder why Bocker makes the frontpage so often. Is Docker still that controversial even in 2024? Why people don't recognize that it actually brought something useful (mainly, software distribution and easy of "run everywhere") to the table?

It's possible it's not climbing the front page to slight docker, but rather that people are seeing that docker is something useful and want to know how it works. Bocker can be an entrypoint into the technologies.

Yes it's a wonderful little read. Besides without volumes and port forwarding few would ever deploy this to production.

The reason people use docker over Podman and rolling their own is because of the ecosystem and ubiquity of docker.

Re: Bocker: Docker implemented in around 100 lines of Bash (2015)

#77
post #9

Earlier quoted context omitted.

Docker Desktop on Mac is a handicapped, underprivileged mess. Docker cli for Mac with Colima is still underprivileged, but at least you can skip the bs license and Docker's gui. On Windows you can at least use Docker on WSL which works great. Why use Docker Desktop is beyond me.

> Why use Docker Desktop is beyond me. I lived through a failed attempt to migrate from Docker Desktop for Mac to an open source alternative (minikube+portainer, IIRC). A lot of test scripts developers relied on – to run parts of the integration test suite on their laptops for debugging – broke, because Docker Desktop for Mac went to a lot of effort to make macOS look like you were running Docker on Linux, whereas th…

A fair amount of the Docker Desktop use, on both mac and Windows, is driven by it's internal workarounds for brain-dead corporate VPNs.

Re: Bocker: Docker implemented in around 100 lines of Bash (2015)

#78
post #46

I like when repos say "not implemented yet" or "to-do" or "working on" and the last commit was years ago. Makes me feel better about not going back to my to-dos I drop through my code. (Not meaning to throw shade on this author, just finding it comforting)

I feel like most — if not all — projects are never done. Knowing when to stop is important

Yeah it's weird, I feel like a repo is untrustworthy if it wasn't committed to in the past year but sometimes a project is just done. Now I'm actuality there would likely be work on my end to update it for integration with modern tools/devices, but there's a repo from 12 years ago I've been considering using. Maybe it'll just work, maybe it'll be trash.

Re: Bocker: Docker implemented in around 100 lines of Bash (2015)

#79

I wonder why Bocker makes the frontpage so often. Is Docker still that controversial even in 2024? Why people don't recognize that it actually brought something useful (mainly, software distribution and easy of "run everywhere") to the table?

It hits the frontpage often because people assume that Docker is this super complex thing, but (at its most fundamental), it's actually quite elegant and understandable, which is interesting - a perfect HN story, in fact.

Re: Bocker: Docker implemented in around 100 lines of Bash (2015)

#80

I wonder why Bocker makes the frontpage so often. Is Docker still that controversial even in 2024? Why people don't recognize that it actually brought something useful (mainly, software distribution and easy of "run everywhere") to the table?

I'm bringing overlayfs to people at my company to save time on a lenghty CI process, and they are in awe at the speedup. But after demo-ing it to a few people I realized they could just use / (I could have brought them) docker.
Post reply on HN