News for hackers. Stuff that matters.
Re:Containers vs. Zones vs. Jails vs. VMs (2017) by tyingq on Monday April 06, 2020 @08:26PM (#22799270)
Have them look at bocker (docker-like in ~100 lines of bash).

It makes it very clear what docker is, and isn't.

https://github.com/p8952/bocker

Specifically, the bocker_run function: https://github.com/p8952/bocker/blob/master/bocker#L61

Re:Containers vs. Zones vs. Jails vs. VMs (2017) by hadsed on Tuesday April 07, 2020 @02:00AM (#22800686)
so what's the gap here with docker? what incorrect assumptions would i make from assuming this as a model for containers, if anyone knows
Re:Containers vs. Zones vs. Jails vs. VMs (2017) by cle on Tuesday April 07, 2020 @02:11AM (#22800742)
The gap is that it's skipping half of what makes Docker powerful, and what isn't really discussed in this conversation at all either. Distribution.

E.g. see this line of code: https://github.com/p8952/bocker/blob/master/bocker#L25

"But I thought bocker implements Docker?" It doesn't, it only attempts to implement the "Docker daemon" part, and piggy-backs on Docker registries for image distribution. This is a huge part of the power of Docker, and why Docker isn't "just cgroups and namespaces". Cgroups and namespaces are a critical element, but Docker is much more than that too--it's also a set of standards for distributing and administering configuration+data for cgroups and namespaces.

Re:Containers vs. Zones vs. Jails vs. VMs (2017) by barbecue_sauce on Tuesday April 07, 2020 @02:51AM (#22800912)
So many people don't seem to understand that artifact distribution is the compelling feature of Docker.
Re:Containers vs. Zones vs. Jails vs. VMs (2017) by imtringued on Tuesday April 07, 2020 @03:24AM (#22801053)
And if you want to have artifacts you also need a way to build them... Running containers is just one third of the features that docker offers.
Re:Containers vs. Zones vs. Jails vs. VMs (2017) by gwd on Tuesday April 07, 2020 @03:49AM (#22801184)
Exactly. Containers were around for at least a decade before Docker, just like mp3's were around for decades before the iPod. Docker's simple, efficient way to package containers were the key to their explosion.
Re:Containers vs. Zones vs. Jails vs. VMs (2017) by irishsultan on Tuesday April 07, 2020 @04:40AM (#22801434)
> , just like mp3's were around for decades before the iPod

That sounded wrong intuitively, so I decided to look it up: Wikipedia claims that mp3 was initially released in 1993, and the iPod was initially released in 2001, so not decades and not even a full decade.

Re:Containers vs. Zones vs. Jails vs. VMs (2017) by gwd on Tuesday April 07, 2020 @07:07AM (#22802137)
Thanks for the correction. For some reason I thought that the patents on mp3 compression were issued in the 80's, but there's nothing in the Wikipedia article which specifically says that.

The point stands though, that Docker didn't invent containers by a long shot; but they did make them massively more useful.

Re:Containers vs. Zones vs. Jails vs. VMs (2017) by tyingq on Tuesday April 07, 2020 @09:25PM (#22809255)
I'd argue that bocker makes that more clear. It takes away any idea that the magic is in the containers. To the degree that it is, Linux provides that...not Docker.

It helps focus on what Docker does provide, as you mention.

Re:Containers vs. Zones vs. Jails vs. VMs (2017) by cle on Wednesday April 08, 2020 @04:02PM (#22816473)
Right that's a reasonable claim. bocker makes false claims though, which causes a bunch of confusion (which seems to be the case for the person I was replying to).

"Docker implemented in around 100 lines of bash."

This is simply not true.