Re:Shocker: Docker implemented in ~300 lines of bash
by kspetkov79 on Saturday May 23, 2026 @12:33AM
(#48244709)
This kind of project is useful because it shows that containers are not magic.
Not something I would run in production, but good for understanding the parts.
Re:Shocker: Docker implemented in ~300 lines of bash
by traceypooh on Saturday May 23, 2026 @01:04AM
(#48244869)
agreed. probably not for production. but wow it has been great educationally to see all the parts and pieces from basic linux packages. I wouldn't have believed this could all be done in minimal bash. Thankfully btrfs does a lot of the heavy lifting (and also helps visualize copy-on-write, dir layouts, etc.)
highly recommend the delight playing with it on a VM! :)
but you can still have fun learning with this minimal tool.
highly recommend the delight playing with it on a VM! :)
shocker run -e;
shocker run -it (improvements);
shocker run respecting WORKDIR, CMD, ENTRYPOINT;
and for silliness, you can shocker-in-shocker now :D