Docker is weird

(codeandcake.dev)

789 points by psxuaw19 hours ago

63 comments

  • MarekKnapek1 minute ago
    Yes, Docker is weird. We already have a process management thing - it is called an operating system. But processes are misbehaved sometimes. They are not configurable enough, what if two processes want to listen on port 80? What if two processes want to save stuff at /var/abc.txt? And so on. In this case Docker might have a point. Otherwise it is just saysadmin's lazyness.
  • shykes18 hours ago
    Hi, I&#x27;m the creator of Docker and came across this post. It&#x27;s always fun to see other engineers think about how you designed a system. I haven&#x27;t been involved in developing Docker in many years, but it&#x27;s a fun trip down memory lane.<p>I&#x27;m happy to answer any questions you may have.
    • daitangio3 hours ago
      I&#x27;m a super fan of docker and I also want to say thanks for designing it.<p>I think docker is not weird, it is very linear.<p>Docker has the merit to take a bunch of tools and to create an organized view of it.<p>I want to point you to Misterio <a href="https:&#x2F;&#x2F;github.com&#x2F;daitangio&#x2F;misterio" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;daitangio&#x2F;misterio</a> which is a very thin layer on top of docker compose.<p>It simplify my homelab and works like a charm, and it is a waaaaay easier to use than k8s.<p>Thank you again, and let me know if you plan a trip in Milan :) for a meeting
    • pixelmonkey13 hours ago
      I was in the audience when you gave the 5-minute docker lightning talk at PyCon US Santa Clara in 2013. I remember chatting with a friend&#x2F;colleague about it (<a href="https:&#x2F;&#x2F;nvie.com&#x2F;about&#x2F;" rel="nofollow">https:&#x2F;&#x2F;nvie.com&#x2F;about&#x2F;</a>) and we both agreed it was the most interesting lightning talk that day.<p>What’s funny, though, is that since it was “just” a lightning talk, it didn’t even make it into the roundup of notes I sent to my team after PyCon. But a mere year later, Docker was how my team (and seemingly everyone else) ran projects locally.<p>Any interesting memories from that day in 2013? From your perspective, what happened in the year that followed that caused docker to be adopted so widely? Were there other key moments or turning points?
      • shykes13 hours ago
        &gt; <i>Any interesting memories from that day in 2013?</i><p>That day is forever engraved in my memory... Off the top of my head:<p>I signed up for a lightning talk expecting an audience of 10-20 people, for a confidential demo of our unfinished project that we had so far only showed in 1-1 demos. Imagine my surprise when I learned Pycon does lightning talks on the main stage!<p>The previous speaker didn&#x27;t show, so I started early. In the recording you can hear me joke that perhaps I should get his time allocation too - the MC was not amused.<p>I went over time and had to speedtalk through the end.. The MC once again was not amused and practically shoved me off stage :-D<p>We had a small sponsor booth at the even, where our small marketing team was prepared to pitch our product (DotCloud) but was thoroughly confused when a horde of people showed up after the talk, to ask about &quot;Docker&quot; - which as far as they knew was the founder&#x27;s side project.<p>I drove down to Santa Clara on my newly acquired motorcycle - my very first trip on the freeway. I remember telling myself, &quot;today is the day to take all the risks!&quot;
        • nzealand45 minutes ago
          Whenever I am anxious about a presentation, a motorcycle ride to the presentation usually puts everything in perspective.
          • vel0city12 minutes ago
            I agree with this take, even not riding as much as I&#x27;d like these days.<p>I had a pretty much near death motorcycle accident I happened to mostly walk away from which really made me restructure my perspective on things I&#x27;m afraid of.<p>It also managed to make my then to be wife realize she really couldn&#x27;t live without me when I sent her a photo of a mangled bike and the text &quot;ouchies&quot;, so that accident really changed my life positively and radically.<p>Although I&#x27;m still sad it destroyed my OG Surface Pro. It was a maxed out launch model with the year of the dragon touch cover I bought at a Microsoft store at a mall that doesn&#x27;t even exist anymore. Worn in a messenger bag on my back, and ended up like a crazy twisted piece of metal in the end.<p>So yeah. Motorcycles. They&#x27;ll change your life.
        • gortok3 hours ago
          I was there as well, and while I was really impressed; I was also weirdly weirded out that this wasn’t a bigger deal to all the folks in attendance. And so that made me doubt that what I saw was that impressive, as surely other folks in the audience would know better than I would.
        • elendilm43 minutes ago
          That literally was history in the making. Much respect.
        • w8vY7ER13 hours ago
          How much have you ridden since that day? Any new bikes?
        • buddhistdude5 hours ago
          now imagine what the guy who invented AI must&#x27;ve thought on his first motorcycle ride back from work
          • Rediscover3 hours ago
            Referencing bicycles and Dr. Albert Hofmann?
      • raymond_goo12 hours ago
        The Video in Question: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=wW9CAH9nSLs" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=wW9CAH9nSLs</a>
        • ignurant6 hours ago
          This is wild to see. I remember how exciting this was when I eventually learned about this tech. To see it minimized to a five minute surprise intro like this and then shuffled off stage is amazing. Thanks for sharing the video in this context.
        • tkapin10 hours ago
          Thanks for sharing this, a really interesting piece of history. It’s always nice to look back at the beginnings of great technology that powers the modern world. Also, thank you, Solomon!
      • zerkten47 minutes ago
        The recording of that lightning talk session is at <a href="https:&#x2F;&#x2F;pyvideo.org&#x2F;pycon-us-2013&#x2F;friday-evening-lightning-talks.html" rel="nofollow">https:&#x2F;&#x2F;pyvideo.org&#x2F;pycon-us-2013&#x2F;friday-evening-lightning-t...</a>. I was there too and was among those who didn&#x27;t get it immediately. I do recall more and some mentions of that talk during conversations through the remainder of PyCon though.
    • javier248 minutes ago
      As a backend developer, I am hopelessly grateful for docker and containerization in general. The old days with stateful application servers were AWFUL.
    • davnicwil18 hours ago
      I&#x27;m a big fan of docker and mainly just want to say thanks for bringing it about.<p>I remember my first time trying to use a container was about 2015 on a beach cafe&#x27;s wifi in Bocas del Toro, Panama. You can imagine how it went...<p>After a brief hiatus though I was back to it and since then it&#x27;s been a core part of many a local dev stack and even production stack (compose) I&#x27;ve set up. I recall the magic moment for me being when I first realised you could mount src to use all your local native dev tools while completely virtualising everything else, including and especially whatever combo of runtimes and dependencies you need.<p>It was just a lightbulb moment, like it entirely solves &#x27;works on my machine&#x27;, setting new people up on a project, it just seems like how software engineering ought to work and once you have experienced it it&#x27;s difficult to go back.<p>I&#x27;m curious, as its creator are you still using it, or as someone who can clearly look ahead to experimental ways of doing things are you on to the next thing whatever that may be? If so, what is it? :-)
      • shykes16 hours ago
        Thank you for sharing that!<p>Yes, I still use Docker. Although my way of using it has changed over time, like many others I assume.<p>My new project, Dagger, although it doesn&#x27;t directly compete with Docker, does implement its own container runtime and orchestrator (for CI pipelines), and we recently added compatibility with Dockerfiles and Docker Compose files... So increasingly I find myself using Dagger instead of Docker, in the context of my CI pipelines.<p>On the other hand, I use docker compose on almost every personal project - like a minecraft server for my kids, home automation, AI hacks, etc. These days I just let my AI agent set it up for me, though :)
        • elliottmoos8 hours ago
          Love Dagger! Not sure how I missed the connection here until now.<p>“You’re overpaying for CI” (<a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=tsH3eTo2GLI" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=tsH3eTo2GLI</a>) from KubeCon 2024 seems especially pertinent these days with AI.<p>Was one of my favorite talks that year and really made Dagger click for me.
          • kpen112 hours ago
            Thats me! I really enjoyed putting that one together and I&#x27;m thrilled that people are still talking about it :)
        • davnicwil13 hours ago
          I&#x27;ll check out Dagger, sounds interesting.<p>Yeah I&#x27;ve really been enjoying using AI to write docker&#x2F;compose config and related ad hoc scripts. It was all pretty understandable anyway, but now you can just set up whatever you can think of in literally minutes, even if you just want a particular configuration as a one off. It&#x27;s a great era for devops!
        • jacques_chester13 hours ago
          &gt; <i>does implement its own container runtime</i><p>I take it vito talked you into adopting Garden? &lt;&#x2F;injoke&gt;
        • MomsAVoxell14 hours ago
          I’m curious if your background gave you experience with other operating systems, such as TandemOS?
    • FlyingSnake14 hours ago
      Thank you for inventing Docker, it truly changed the life of many developers.<p>I was there when dotCloud announced Docker in 2013 and it was truly pragmatic. I had previously burned my hands on LXC, Juju Charms and Vagrant to containerize the apps, but it was all a house of cards. I remember helping a friend ship his whole Vagrant Box to the interview panel for a job!<p>It’s incredible to think about how much boilerplate Docker removed right at it&#x27;s launch. Thank you.
      • mexicocitinluez7 hours ago
        &gt; it truly changed the life of many developers.<p>That&#x27;s for sure, especially for local dev.
    • nickjj2 hours ago
      Hi Solomon,<p>Docker completely changed my life. When I started using it in 2014, I really appreciated how well it solved certain problems I had for web development.<p>It spawned a near endless stream of contract work and video courses for about 10 years, along with being introduced to the Docker captain&#x27;s program early on. Met so many great people and had a chance to visit a few countries around the world through Docker.<p>It&#x27;s one of those pieces of tech that has followed me around for half my career and will likely continue until the end. It&#x27;s the best community I&#x27;ve ever been a part of.
    • snovymgodym43 minutes ago
      In my opinion, Docker is probably the defining computer technology of the 2010s.<p>I know that containerization on Unix-like systems didn&#x27;t begin with Docker, but I definitely think Docker was the first accessible interface for it.<p>I think app containerization is something that has so many benefits and it&#x27;s the obvious correct approach for its use cases once you wrap your head around it. This was already understood at big tech companies pre-Docker (e.g. Borg, Tupperware, user app sandboxing on iOS and Android), but I think it really took something like docker to make it mainstream.<p>As far as I&#x27;m concerned, you can probably consider yourself like the Ken Thompson or Dennis Ritchie of your era in terms of the impacts of your contribution.
    • duggan7 hours ago
      Since we&#x27;re reminiscing, I was working for Engine Yard when Docker was released. I remember engineering and product leadership huddled around a desk wondering aloud whether we needed to do something about it.<p>In retrospect, of course, it was earth-shattering for the company, despite a valiant effort. The entire expertise of deploying long lived Linux servers and carefully shepherding them through change management with Chef became a relic to most developers. Totally changed the way applications were deployed.<p>Was an exciting time!
    • TuxPowered12 hours ago
      Hi, question from a sysadmin &#x2F; network engineer. Why localhost with port forwarding? Why not native mechanism like routing and mdns? I’ve gave Docker and other container managers which do networking the same way a try a few times and I always found the network unnecessarily complicated. Eventually I came across OrbStack which uses the aforementioned mechanisms. Every container gets an IP address in the local bridge and responds to mdsns queries. This plays especially well in “compose” scenario when services on containers can all use original port numbers. And containers can be accessed with hostnames, so there won’t be conflict between port numbers especially if I run multiple composed stacks.
      • boie002512 hours ago
        I definitely enjoy learning other people&#x27;s opinions on things I didn&#x27;t realize I had an opinion on until I learned there was something to opine about.<p>To me the arbitrarily complex docker networking makes perfect sense. Especially in a compose setup. I want my containers to be able to talk to each other, but I don&#x27;t want them on my local network or even accessible (sometimes) from the local machine. The various internal networks offer isolation of containers from the rest of the network stack. If I have a rails app in a docker compose configuration with PG, Redis, Elasticsearch, etc, in a development environment, most of the time I don&#x27;t want the service&#x2F;accessory containers anywhere near anything other than the app&#x27;s container. And if I want several compose stacks to work together, I just put them on the same named network. I apologize if I misunderstood your point.
    • figmert18 hours ago
      I&#x27;m curious what made think of it in the first place? What was your thought process that made you think that these Linux primitives give the opportunity to make it a platform for distributing and deploying packaged applications and eliminating a lot of the issue around &quot;it works my machine&quot; argument?<p>You may have already answered this somewhere, so feel free to tell me what to search for or if you have a link to hand, that works too :)
      • bijmtir17 hours ago
        Docker was basically a commercialisation of lxc and now we got nspawn going full circle.
        • shykes17 hours ago
          This is incorrect.<p>Docker in its earlier incarnations was based on openvz, which predates lxc. The lxc project was initially a kernel development project: a collection of kernel patches to add container support. The userland tool was just a companion. When it became apparent that these patches would &quot;win&quot; the race to be upstreamed even though openvz was much more mature, we switched our tooling to lxc. The patches matured over time, but the userland tool (what we now know as &quot;lxc&quot;) was finicky.<p>The original open-source release of Docker wrapped lxc for low-level container operations. But it was just too unreliable and we swapped it out for an in-house Go implementation called &quot;libcontainer&quot;.<p>As for &quot;commercializing&quot;: Docker was famously bad at commercializing anything, we open sourced so much (maybe too much) and still people complained that we were not open enough.
          • stingraycharles16 hours ago
            “Docker was famously bad at commercializing anything, we open sourced so much (maybe too much) and still people complained that we were not open enough”<p>Developers are a tough market to please, especially when your business revolves around open source software.<p>Unless you have an option to do private cloud hosting (like all these databases and other platforms do), it’s incredibly difficult to monetize.<p>In the case of docker, I think it’s in the nature of the product that it’s difficult to monetize. Best you can do is enterprise support contracts, but those aren’t good enough to justify all that VC funding.
            • dralley16 hours ago
              I don&#x27;t think it&#x27;s necessarily that difficult to monetize, they just ignored a lot of the needs of enterprise users (rootless, not punching holes in the firewall, not fighting with systemd, private registries) for long enough that other projects (e.g. Podman, Quay) filled the void.
              • shykes10 hours ago
                None of those things were obstacles to commercialization. None of them were common requests from enterprise customers except private registries, which Docker did build.<p>Podman has never been commercialized.<p>Docker&#x27;s difficulties in commercializing were self-inflicted. Enterprise and open source teams were culturally siloed and as a result the enterprise products were not &quot;native&quot;. There was a lack of focus and a &quot;checkbox&quot; approach to building product. There was no singular &quot;dictator&quot; who could enforce a coherent product design and vision, and it showed. etc.
                • sheepscreek5 hours ago
                  I was a DotCloud user before Docker, and I remember keenly thinking - “oh, is that how they went from hosting only PHP to any language&#x2F;stack?”<p>I always assumed it was the same internal tech, now productized. Then of course, it became THE tech, overtaking vagrant and anything else for local development <i>and</i> deployment. The latter was the true money shot. Server runs exactly what you test with locally.
            • justsomehnguy13 hours ago
              &gt; Docker was famously bad at commercializing anything<p>That&#x27;s because there was never a proper sysadmin on your team to slap some sense in your decisions.<p>You&#x27;ve got too opinionated[0], too tied on yourself[1] monster which required too much resources what you can handle alone.<p>And your <i>market</i> is not the developers but the companies where whose developers have a daytime jobs: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34377674">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34377674</a><p>BTW just for giggles opened hub.docker.com with Network Tools opened:<p>368 requests, 9.62MB, Finish: 4.50s.<p>For a thing which should be a static cached copy with everything bundled. Sure, it&#x27;s a progress from the previous iterations when it could hang for 30 seconds before actually loading... but this is still ridiculous.<p>[0] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=46739153">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=46739153</a><p>[1] Eg: the syntax to point the image to a specific registry is something... bad. So bad I just abandoned running my own registry, it wasn&#x27;t worth it.<p>PS there is still (AFAIK) no support for a transaction-like image building in Compose. So instead of something like this:<p><pre><code> TRANSACTION START RUNBATCH set -eux # TODO find a better userspace architecture detection method than querying the kernel arch=&quot;$(uname -m)&quot; case &quot;$arch&quot; in \ aarch64) gosuArch=&#x27;arm64&#x27; ; x86_64) gosuArch=&#x27;amd64&#x27; ; *) echo &gt;&amp;2 &quot;error: unsupported architecture: &#x27;$arch&#x27;&quot;; exit 1 ; esac curl -fL -o &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gosu.asc &quot;https:&#x2F;&#x2F;github.com&#x2F;tianon&#x2F;gosu&#x2F;releases&#x2F;download&#x2F;$GOSU_VERSION&#x2F;gosu-$gosuArch.asc&quot; curl -fL -o &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gosu &quot;https:&#x2F;&#x2F;github.com&#x2F;tianon&#x2F;gosu&#x2F;releases&#x2F;download&#x2F;$GOSU_VERSION&#x2F;gosu-$gosuArch&quot; export GNUPGHOME=&quot;$(mktemp -d)&quot; gpg --batch --keyserver hkps:&#x2F;&#x2F;keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 gpg --batch --verify &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gosu.asc &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gosu rm -rf &quot;$GNUPGHOME&quot; &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gosu.asc chmod +x &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gosu gosu --version gosu nobody true TRANSACTION END </code></pre> people need to write these one-liner abominations:<p><pre><code> RUN set -eux; \ # TODO find a better userspace architecture detection method than querying the kernel arch=&quot;$(uname -m)&quot;; \ case &quot;$arch&quot; in \ aarch64) gosuArch=&#x27;arm64&#x27; ;; \ x86_64) gosuArch=&#x27;amd64&#x27; ;; \ *) echo &gt;&amp;2 &quot;error: unsupported architecture: &#x27;$arch&#x27;&quot;; exit 1 ;; \ esac; \ curl -fL -o &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gosu.asc &quot;https:&#x2F;&#x2F;github.com&#x2F;tianon&#x2F;gosu&#x2F;releases&#x2F;download&#x2F;$GOSU_VERSION&#x2F;gosu-$gosuArch.asc&quot;; \ curl -fL -o &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gosu &quot;https:&#x2F;&#x2F;github.com&#x2F;tianon&#x2F;gosu&#x2F;releases&#x2F;download&#x2F;$GOSU_VERSION&#x2F;gosu-$gosuArch&quot;; \ export GNUPGHOME=&quot;$(mktemp -d)&quot;; \ gpg --batch --keyserver hkps:&#x2F;&#x2F;keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; \ gpg --batch --verify &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gosu.asc &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gosu; \ rm -rf &quot;$GNUPGHOME&quot; &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gosu.asc; \ chmod +x &#x2F;usr&#x2F;local&#x2F;bin&#x2F;gosu; \ gosu --version; \ gosu nobody true </code></pre> EDIT: to add on [1]: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35312087">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35312087</a>
              • dns_snek10 hours ago
                &gt; You&#x27;ve got too opinionated [0]<p>&gt;&gt;[0] &#x27;Bridge&#x27; was and still is an established network term for joining two broadcast domains into one. Why the hell you decided to name your NAT&#x27;ed network layer a &#x27;bridge&#x27;?<p>Like they told you 9 months ago, the terminology is exactly right. They&#x27;re called &quot;bridge&quot; networks because they use Linux `bridge` devices to <i>bridge</i> `tap` adapters of all containers attached to the same Docker network.<p>There&#x27;s nothing exotic about this terminology at all and complaining about it betrays your own lack of knowledge.<p>&gt; PS there is still (AFAIK) no support for a transaction-like image building in Compose. So instead of something like this:<p>Do you mean Dockerfiles? RUN command has had heredoc support for 5 years now.<p><a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;reference&#x2F;dockerfile&#x2F;#run" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;reference&#x2F;dockerfile&#x2F;#run</a>
                • justsomehnguy9 hours ago
                  &gt; Like they told you 9 months ago, the terminology is exactly right<p>Oh, well. I guess you ride to your work on wheels, right? Because while you sit <i>in</i> the car&#x2F;bus&#x2F;train it&#x27;s the wheels what actually <i>rides</i> on the road&#x2F;track, right?<p>And if you bothered to look at that comment then why do you ignore what &#x27;macvlan&#x27; - which is <i>an actual bridge</i> both in terms of a Linux device and the functionality - is not called &#x27;bridge&#x27;?<p>Because you don&#x27;t understand the problem. More so, you ignore the actual question there about the broadcast domains.<p>No, if even if you use a bridge <i>internally</i> when your container is on a isolated network which is invisible to anyone on your network <i>and</i> the container access the network behind your host through the NAT - this can&#x27;t be called a bridge.<p>You see, if they just called it as it should, ig:<p><pre><code> bridge =&gt; hostnatnetwork &#x2F;&#x2F; or internalbridgenatnetwork or whatever else macvlan =&gt; bridge </code></pre> then they would be both named correctly and be the technically correct - and 99% of Docker users couldn&#x27;t tell a difference - because they are not net or sys administrators.<p>But the last 1% is the people who actually makes the workspaces for these developers where they actually do run their fancy-shmancy containers. And for that 1% it surely pays naming this as they are.<p>And there is also that dumb decision to silently rewrite 127.0.0.1 to Google DNS without a question. Especially when 98% of Docker users are incapable to diagnose it by themselves.<p>So it&#x27;s not only the naming of a network functions.<p>But hey, I&#x27;m just <i>knowledge lacking</i> guy without experience at all, just yesterday saw a computer a first time in my life, sure, sure.<p>&gt; RUN command has had heredoc support for 5 years now<p>So ten years late? Adoption is off the limits, as you can see - that snippet is from the official Docker image.<p>And if I need to run multiple commands and not just one RUN statement? Like the people are asking for <i>years?</i> And you so knowledgeable person of course do know <i>the reason</i> for that, right?
                  • zbentley2 hours ago
                    I think there are some interesting points there, but your rude, arrogant, and aggrieved tone overwhelms them.<p>If you decide to edit your tone, I&#x27;m happy to discuss more here re: filesystem transactionality tradeoffs, since that&#x27;s something I&#x27;ve struggled with in both directions WRT containers.
                  • dns_snek8 hours ago
                    &gt; And if you bothered to look at that comment then why do you ignore what &#x27;macvlan&#x27; - which is an actual bridge both in terms of a Linux device and the functionality - is not called &#x27;bridge&#x27;?<p>Because renaming things that map 1:1 onto the underlying concepts is a terrible idea that makes learning and communication harder by introducing ambiguity and indirection. &quot;bridge&quot; now means multiple things and not only is it needlessly obfuscated, it&#x27;s <i>wrong</i> (explained later). I _hate_ projects that do this.<p>&gt; Because you don&#x27;t understand the problem. More so, you ignore the actual question there about the broadcast domains.<p>A Docker &#x27;bridge&#x27; network driver creates a broadcast domain <i>between containers attached to that network</i>.<p>Rhetorical question, maybe it&#x27;ll help you find a source of misunderstanding: Why do you expect it to join the broadcast domains of your containers and your LAN? And which LAN, exactly?<p>&gt; No, if even if you use a bridge internally when your container is on a isolated network which is invisible to anyone on your network and the container access the network behind your host through the NAT - this can&#x27;t be called a bridge.<p>Your misunderstanding seems to stem from the flawed assumption&#x2F;expectation that every container is automatically attached to your LAN. Therefore you incorrectly expect and demand that term &quot;bridge&quot; accurately describe the logical connection between your container and your LAN.<p>Docker networks are entities independent of your LAN, they&#x27;re isolated networks that primarily serve to connect containers amongst themselves.<p>A Docker &#x27;bridge&#x27; network is not <i>necessarily</i> routed to LAN either so your suggestion of calling them &quot;hostnatnetwork&quot; is wrong. Auto-configuration of NAT between the internal bridge network and your LAN is just a convenience feature which you can disable, it&#x27;s not an inherent property of bridge networks.<p>Disabling NAT for a specific brige network (com.docker.network.bridge.enable_ip_masquerade): <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;engine&#x2F;network&#x2F;drivers&#x2F;bridge&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;engine&#x2F;network&#x2F;drivers&#x2F;bridge&#x2F;</a><p>Disabling auto-configuration of all firewall rules: <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;engine&#x2F;network&#x2F;packet-filtering-firewalls&#x2F;#prevent-docker-from-manipulating-firewall-rules" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;engine&#x2F;network&#x2F;packet-filtering-fire...</a><p>&gt; But hey, I&#x27;m just knowledge lacking guy without experience at all, just yesterday saw a computer a first time in my life, sure, sure.<p>No I didn&#x27;t say that, I think you suffer from the curse of having a lot of previous experience in an adjacent area where you built a strong mental model of how things ought to work, but now you&#x27;re trying to forcefully apply this same mental model onto Docker.<p>All of this networking terminology is consistent and applied correctly but for some reason it&#x27;s not clicking with your previous knowledge and you&#x27;re trying to fit a square peg through a round hole. Take a step back, investigate.<p>&gt; So ten years late?<p>Don&#x27;t shift the goalposts. You claimed it still doesn&#x27;t exist.
                    • grosswait6 hours ago
                      &gt; No I didn&#x27;t say that, I think you suffer from the curse of having a lot of previous experience in an adjacent area where you built a strong mental model of how things ought to work, but now you&#x27;re trying to forcefully apply this same mental model onto Docker. I think you just proved his point. Docker came onto the scene and hit roadblocks in enterprises where sysadmins lived. These architectural and terminology choices ran head on into well established domains. Yes, docker did change things, but I think his point is it would’ve had more success with paying customers if the authors of docker had a better understanding of established network administration and system administration concepts from the start (though these were the early devops days…). That lack of understanding caused adoption friction in enterprise space, and different choices could’ve prevented that without changing at all the paradigm of what docker is.<p>The docker mental model isn’t crazy different. Design choices made it unnecessarily less compatible with existing mental models. This probably contributed to the feeling of it being revolutionary, but impeded its adoption with paying customers.
                      • dns_snek5 hours ago
                        Can you be more concrete?<p>In my experience adoption was primarily driven by developers and sacrificing clarity would hurt adoption. This perfect familiarity was never achievable anyhow. Docker was a completely new paradigm in software development, similar to how modern cars aren&#x27;t just horse carriages without the horse. It transformed <i>everything</i> from development, testing, deployment, updates.<p>Experienced sysadmins often tried to approach it with &quot;VMs but with less overhead&quot; mentality, which couldn&#x27;t possibly work. Coworkers would ask me how they can install SSH daemons in containers to update packages and view logs, or they would refuse to adopt Dockerfiles, sometimes setting up the container manually and exporting the image. They would wonder how to install many different services in 1 container and handle crashes, etc. It was a huge shift.<p>&gt; Design choices made it unnecessarily less compatible with existing mental models.<p>Again, I disagree. Whose mental model do you prioritize? How invested are you in making Docker work just like whatever elaborate system those enterprise admins used before?<p>Let&#x27;s not forget that by creating new abstractions, you&#x27;re penalizing users who already possess foundational knowledge of the primitives. If you do this then I&#x27;m probably going to get a whiff that you care more about enterprise sales than developer experience (duh) which is a huge red flag for me.
                    • justsomehnguy4 hours ago
                      &gt; Because renaming things that map 1:1 onto the underlying concepts is a terrible idea that makes<p>Sorry, but you <i>do</i> insist on naming &#x27;docker&#x27; bridge a bridge because it&#x27;s underlying tech is a bridge. Make up your mind.<p>&gt; A Docker &#x27;bridge&#x27; network driver creates a broadcast domain between containers attached to that network.<p>And noone absolutely ever cared about what it&#x27;s a bridge down there. It could be using gronklew and maybe 20 people on the planet would care to learn what it is.<p>You are quite bent on it, but nobody cares how <i>the containers talk between each other.</i><p>&gt; Why do you expect it to join the broadcast domains of your containers and your LAN?<p>I expect a setting named &#x27;bridge&#x27; in some $thing to actually implement a bridge.<p>Just like you pressing an AC button in your car expect a very specific thing to turn on&#x2F;off and not &#x27;Artifically flavoured windshield wipers served in a Container&#x27;.<p>Why do I want it is on me. Maybe I need it. Maybe I control my network and freely give out addresses to anything. Maybe I don&#x27;t run on some cheap VPS somewere with only 1 IP I can&#x27;t choose nor change. Bazillion of options. None matters because this is not about &#x27;why do you want it&#x27;.<p>&gt; And which LAN, exactly?<p>The path of a least automagik.<p>Only one ethernet interface? Then connect to that ethernet interface. Bitch in the logs what automagik was used and this can lead to the problems.<p>Many interfaces? Just shutdown (least pain for newbies) or start without attaching (harder to troubleshoot for newbies). Bitch in the logs in either case.<p>&gt; Your misunderstanding seems to stem from the flawed assumption&#x2F;expectation that every container is automatically attached to your LAN<p>&#x27;Your misunderstanding seems to stem what there are some people assume what they are driving in like c-a-a-r. When even 5y.o. knows it&#x27;s <i>the wheels</i> what drives you around.&#x27;<p>&gt; Docker networks are entities independent of your LAN, they&#x27;re isolated networks that primarily serve to connect containers amongst themselves.<p>Yes, <i>exactly</i>. Don&#x27;t call it &#x27;bridge&#x27; ~20 years ago and we don&#x27;t have this talk here.<p>&gt; Auto-configuration of NAT between the internal bridge network and your LAN is just a convenience feature which you can disable, it&#x27;s not an inherent property of bridge networks.<p>It&#x27;s not even a property of a bridge network. For someone claming knowledge superiority this is a quite lame statement.<p>&gt; links<p>Really.<p>&gt; previous experience in an adjacent area where<p>Ah, yes, irrelevant &#x27;adjacent area&#x27; of computer networks. I&#x27;m out of words.[0]<p>&gt; All of this networking terminology is consistent and applied correctly<p>No. Go drive your <i>wheels</i> home.<p>&gt; Don&#x27;t shift the goalposts. You claimed it still doesn&#x27;t exist.<p>I&#x27;m just mentioned RUN as an example. You decided what multiline <i>is</i> the goalpost.<p>And yes, if even the official Docker images doesn&#x27;t use RUN heredocs then... there is something wrong with them. Like being implemented too late.<p>[0] but perfectly explains your previous &#x27;flawed assumption&#x27;
                      • dns_snek3 hours ago
                        &gt; And noone absolutely ever cared about what it&#x27;s a bridge down there.<p>Just like nobody ever cared that the container isn&#x27;t bridged to their LAN in the first place - in fact the isolation is a feature.<p>But you should care, it&#x27;s only the most common building block of network isolation for containers&#x2F;VMs on Linux.<p>---<p>I&#x27;m not going to get into it further. I tried to explain nicely but you seem hell bent on complaining and not learning anything new. At this point the appropriate response is: RTFM, it&#x27;s all in there, their docs are great.<p>If you don&#x27;t have a clue about how things work under the hood and if you have no interest in learning anything, then stop complaining about imaginary technical inaccuracies.
              • mexicocitinluez7 hours ago
                &gt; BTW just for giggles opened hub.docker.com with Network Tools opened: 368 requests, 9.62MB, Finish: 4.50s.<p>lol What on god&#x27;s green earth does this have to do with commercializing Docker? Do you really think better lighthouse scores on hub.docker.com was what was holding them back?
                • justsomehnguy4 hours ago
                  Nah it&#x27;s just a symptom - one of many.<p>&gt; what was holding them back?<p>Did you miss &#x27;up to 30 secs&#x27; in the previous comment? It&#x27;s not about lighthouse <i>scores</i>. It&#x27;s the whole feeling of a hodge-podged project which is run by people who are - maybe - passionate but ultimately lacking in the basics.<p>The ultimate buyers of their product was the system operators and the system owners - not the developers per se. They failed hard everything that space. Having a dog slow <i>the main content</i> site didn&#x27;t added anything positive.
                  • mexicocitinluez3 hours ago
                    &gt; The ultimate buyers of their product was the system operators and the system owners<p>Right, which is why bringing upva meaningless stat like how many assets their web site downloads feels like satire.
          • javier245 minutes ago
            &gt; As for &quot;commercializing&quot;: Docker was famously bad at commercializing anything, we open sourced so much (maybe too much) and still people complained that we were not open enough.<p>yes, and no. Probably both. Docker would not become such a default standard if it wasnt for all the open sourcing.
          • zoeysmithe16 hours ago
            In the end, how were you able to monetize Docker?
          • bijmtir17 hours ago
            [flagged]
            • shykes17 hours ago
              Earlier incarnations of the project (2008-2011) were python based on openvz+aufs, with the very first prototypes (2007-08) wrapping vserver. We started the transition to lxc+aufs in 2011. Open-sourced the lxc wrapper in 2013. Replaced it with libcontainer in... 2014 I believe?
        • lostlogin17 hours ago
          The LXC way of getting an up per container is pretty great - I’m basic bitch with this sort of thing so I assume it’s less of an issue for the experts but really enjoyed the IP per container when I hit it.
          • SoftTalker14 hours ago
            I always liked lxc for containers. I never understood Docker. Not that I really put a lot of time into trying. These days I don&#x27;t use either one.
            • JoBrad6 hours ago
              What do you use instead of containers?
              • SoftTalker3 hours ago
                I just run programs in my OS. If I want to isolate them I give them their own account and home directory or maybe chroot.
        • iJohnDoe17 hours ago
          I’m a huge fan of nspawn. Always wanted to use VMs instead of Docker and nspawn feels like a natural choice.
          • vaylian9 hours ago
            By nspawn you mean systemd-nspawn?[1]<p>[1] <a href="https:&#x2F;&#x2F;wiki.archlinux.org&#x2F;title&#x2F;Systemd-nspawn" rel="nofollow">https:&#x2F;&#x2F;wiki.archlinux.org&#x2F;title&#x2F;Systemd-nspawn</a>
          • miladyincontrol17 hours ago
            Its nice having the flexibility for both system containers and application containers. It does feel though that most people forget that nspawn does both, and that it only can do system containers.
            • iJohnDoe17 hours ago
              Agreed, I briefly forgot it can do both. Thanks for the reminder.<p>I went down the rabbit hole of Incus and once I realized it requires the full network aspects to be configured, then I figured using KVM, QEMU, Libvirt was more practical. Then stumbled into nspawn and it was basically ready to go.<p>Although, I haven’t done enough research to know if Incus provides certain useful capabilities.
              • radlad16 hours ago
                I&#x27;m a huge fan of Incus. VMs, LXC, and OCI containers all under the same Docker-like CLI interface. I run it on a local server and on a dedicated server in a local DC, and connect to both remotely using Nebula.<p>It includes project-level resource separation, advanced networking, clustering, snapshots, and more. Plus, Stéphane Graber is super responsive on the forums and issue tracker. I bounced off of Proxmox, and can&#x27;t recommend Incus more for hypervisor-type scenarios.
                • nicolasjungers10 hours ago
                  I run Incus, but I had to uncluster my home lab to allow to have zfs duplicated containers (as cold standby) on another physical instance. It may have changed now, but it was not possible to have two near identical container, one up one down, on the same cluster.
                • zenoprax15 hours ago
                  Do you have any experience with multi-node operation with Incus? I like the simplicity of Proxmox for moving VMs and LXCs around but I haven&#x27;t settled on a solution for OCI. K3S is an option but it&#x27;s a big jump. I&#x27;m moving towards Fedora CoreOS VMs at the moment for live migration and security isolation.
    • debarshri16 hours ago
      So you are responsible for my career and the reason i can put food on my table. Thank you.<p>People are underestimating now big of a tech shift it was back in the day.
      • gigatree16 hours ago
        No that’s all you. He just made it easier.
        • shykes15 hours ago
          Well said :)
    • 99990000099917 hours ago
      Thank you.<p>For one, did you get rich beyond all comprehension and did you start a band with your wealth?<p>Second, do you still program ?<p>I was lucky enough to get in this industry when Docker was new. Sure beats trying to figure out why X happens on machine A and doesn’t on machine B.
      • shykes17 hours ago
        I did make a bunch of money with Docker, something I am eternally grateful for.<p>I did not start a band, but I did build a nice house, help my family etc.<p>I still program everyday, working on my second startup, <a href="https:&#x2F;&#x2F;dagger.io" rel="nofollow">https:&#x2F;&#x2F;dagger.io</a> (please forgive the plug). We have a very active discord if you want to come say hi.
        • 99990000099916 hours ago
          I work heavily with CI&#x2F;CD. From a quick glance Dagger looks very promising and I might experiment with it this weekend.<p>I guess my follow up question is once you’re financially independent, what continues to motivate you?<p>Is it fun?<p>Do you feel like you’re creating tools that the industry needs.<p>I imagine if I ever get rich I’d work on music and small games.<p>Video games that you buy once and get to play forever, self host, etc. With a full open source commitment within 5 years or so. I’d probably create a game studio in a lower cost of living country though.
          • shykes15 hours ago
            If you do try Dagger, please join our Discord and tell us how it goes! There&#x27;s a very friendly and active community of CI&#x2F;CD nerds, who will be happy to help.<p>We actually use the same Discord server for community and private team communications. So we are literally there all the time.
        • EdwardDiego15 hours ago
          Commenting to be able to find your CI&#x2F;CD project when back at my desk.
          • j1elo10 hours ago
            You can favorite messages, then check them out from your profile page just like you check on your previously posted messages.<p>Hit on a message&#x27;s permalink (which is the &quot;X hours ago&quot; link), and in there you&#x27;ll find the action to Favorite it.
            • jnsie2 hours ago
              Oh my god. Thank you so much! I never knew this was possible and it&#x27;s <i>really</i> helpful!
            • EdwardDiego10 hours ago
              Thank you!
        • ProllyInfamous7 hours ago
          &gt;I did make a bunch of money with Docker<p>Shortly before this (the weekend after you secured YC funding, IIRC), I[&#x27;m almost certain I] met you in downtown Oakland at Saagar &amp; Tiffany&#x27;s &#x2F;r&#x2F;bayarea meetup [0] – won&#x27;t go into further details, other than <i>I was one of their co-conspirators</i> =P<p>My point of writing this is dualfold:<p>1) Thank you for sharing your design – I literally just installed my first Docker module (last week) and am floored at all the problems Docker might help me solve (I am not employed in tech)<p>2) My recollections of you, this decade+ later, was of a humble young man (we&#x27;re the same age) that didn&#x27;t know what else to do with his newfound techfame (and money) than keep&#x27;on keepin&#x27;on.<p>After watching your Docker Debut video, I&#x27;m fairly certain it WAS you: we chatted about dirtbikes (and just what the hell you were going to do now that you &quot;had money&quot; – then <i>such a foreign concept to us both</i>)... if this wasn&#x27;t you it still seems to echo in your mannerisms&#x2F;tact&#x2F;approach. May your humbleness and cleverness prevail!<p>[0] It might have been at Gustafson&#x27;s NYE party (I was the guy remorselessly conjuringbitches; &quot;Volcano&quot;); we had a mutual friend at MalwareBytes?
        • sharts12 hours ago
          How’s dagger’s k8s and&#x2F;or rust story?
          • shykes12 hours ago
            We are working on making Rust builds much faster, and easier to distribute on a cluster.<p>When self-hosting Dagger, you can run it on Kubernetes. Beyond that, we don&#x27;t use Kubernetes at all ourselves.
    • aquafox11 hours ago
      Given all the popularity and use cases you know today. Is there any fundamental design choice you would have done differently?
    • brightball14 hours ago
      I remember going to a demo of Docker in South Carolina before it hit 1.0. Came back and wrote the “Docker is the Heroku Killer” article on my blog and it was the first thing I wrote that made the front page of HN.
      • tonyhart713 hours ago
        but heroku and docker serve different purpose no ???
        • brightball2 hours ago
          In 2014, Heroku was the only game in town on the PaaS front. Nobody else was even close.<p>Java App Servers with their WAR file deployments across a cluster were the closest equivalent.<p>Docker was the enabler for alternatives.
        • akoboldfrying12 hours ago
          They aren&#x27;t at all the same thing, but at a high level they both reduce the amount of fragile&#x2F;tedious setup-specific futzing you need to do to get a few basic services up.
    • callamdelaney33 minutes ago
      Why did you make compose silently rewrite firewalls?
    • cuttothechase15 hours ago
      Docker ended up as a primary way of delivering, packaging applications etc., for the web and beyond.<p>What was your imagined use case when you first came up with it?<p>Did you think Docker as it is used in the industry right now is where you imagined it would be used?<p>Any use cases for it that the industry missed but you think would have made things even better?
    • ashkankiani8 hours ago
      I appreciate what docker did in pushing a more accessible UX on top of containerization and getting people to think more about reproducible setups and sandboxing. Its popularity was definitely one of the catalysts in that direction.<p>I&#x27;m curious if when you were originally designing it, what tradeoffs you chose between, for example did you consider a non-daemonized design or was it daemonized from the beginning?<p>Having had some time now and also seeing how other people have riffed off of the idea and refined it, what would you have done differently? If you have a retrospective at some point already, I&#x27;d be interested to read it.<p>I have some accumulation of personal architectural guidelines that I built up from trial-and-error + reading others&#x27; experience and reflecting on how their design could&#x27;ve affected something I made. As a result, I really value those kinds of discussions about tradeoffs.
    • ryan2915 hours ago
      What made you decide to use a URI as the namespace for images? I like it, but I think it&#x27;s been very misunderstood which has caused people to dislike it.
      • shykes15 hours ago
        I was inspired by Go&#x27;s use of URI as a namespace for user packages, and short names for the standard library. I thought it was an elegant way to allow everyone to host anywhere, and dodge a lot of complicated namespacing issues.<p>One design principle that was very important to me, was portability and avoiding fragmentation. I wanted every image name to have the same meaning in every engine, so that when writing a Dockerfile, you could have confidence that it would actually behave the same on every docker installation. In this we disagreed with other platforms (like Red Hat) who sought to &quot;embrace and extend&quot; Docker by changing the meaning of short names. We always fought this to avoid fragmentation of the platform. This did not make sense from Red Hat&#x27;s perspective, since <i>they</i> were the platform - who cared about fragmenting Docker? That led to some negativity which is probably what you&#x27;re remembering.<p>At the same time early Docker users wanted the ability to host their own images without being forced to use our central registry. Using Go&#x27;s system solved both problems at once.
        • ryan2913 hours ago
          Thank you for taking the time to reply. Yes, it was the short names and the way people were trying to run local mirrors that I remember.<p>I personally never use the short names and have really come to like your solution. I host my own registry and I can glance at a build or compose file and immediately know if I’m depending on any external resources that I shouldn’t be.<p>I originally disliked it, but it’s been my favorite namespace solution for a long time now.
        • jacques_chester13 hours ago
          Did it though? The amount of grief I&#x27;ve had because `foo&#x2F;bar` gets silently expanded to `docker.io&#x2F;foo&#x2F;bar` is extensive.
        • Shorn14 hours ago
          Any regrets about the namespacing or things you’d do differently with it now looking back?
          • shykes13 hours ago
            My only regret is that so many users had to run local docker registries on each node of their cluster, then write `FROM localhost:1234&#x2F;myimage` in all their Dockerfiles - all to avoid unnecessary re-fetching of remote images. My goal was to make image distribution a native feature of the cluster, so that you wouldn&#x27;t have to choose between portable Dockerfiles and proper image caching. But Kubernetes ended up dominating the cluster layer, and as far as design goes, we were not invited to that table. So as far as I know, the problem was never solved, at least universally for all Docker users.
    • samayashar3 hours ago
      I&#x27;ve been actively using Docker for most of my projects over the past few years and I sincerely thank you for brainstorming and getting it out in the market.<p>The sole idea of containerising an application, its utils and dependencies all into one container is a real big deal in early 2010s. The product has been so visionary that it has been re-pivoted as secure sandboxes which is most needed right now. Kudos!
      • zbentley2 hours ago
        The main primitives that underlie Docker were originally intended to facilitate security and isolation. Docker&#x27;s innovation was combining filesystem-in-a-box with those security primitives, and delivering all those capabilities with highly intelligible UX. That&#x27;s not meant to minimize; I think those are monumental (and monumentally impactful) achievements. But there was no &quot;re-pivot&quot; to secure sandbox isolation; that&#x27;s what things like cgroups and namespaces were created for!
    • ollien2 hours ago
      Not really a question, but just saying &quot;hi!&quot;. You might not remember this, but in 2012 I was about 13 years old, interested in computers, and had no one to really talk to about them. By some miracle my father (who is in no way in tech!) found some connections to YC and organized for us to come out to California to see a bunch of companies. dotCloud was one such company, I still have the t-shirt! I remember chatting with you and you taught me how to use pip, it&#x27;s a fond memory I look back on often.
    • cogman102 hours ago
      The weirdest part of docker, to me, is that it was setup as a client&#x2F;server system. Why was that? Podman for quite some time didn&#x27;t support it.<p>Was it all for the `docker.sock`?
    • okanat18 hours ago
      Would you consider writing Docker&#x2F;moby in a different language, if you were to create it scratch today?
      • shykes18 hours ago
        Oh gosh, the choice of language is such a context-specific design decision. The first versions of what became Docker were written in Python. The choice of Go was a mix of nerdy excitement (&quot;it&#x27;s like the best of Python and C!&quot;), and adoption strategy: back then devops tools were segmented by language runtime: ruby, python or Java mostly. Shipping a compiled binary allowed us to be adopted by all tribes.<p>None of these things can be transposed today, so I guess I can&#x27;t answer...<p>For what it&#x27;s worth, my current project (dagger) is written in Go.
        • justincormack11 hours ago
          I interviewed Solomon about the Go history (plus some others) for this talk <a href="https:&#x2F;&#x2F;www.infoq.com&#x2F;presentations&#x2F;languages-cloud-native&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.infoq.com&#x2F;presentations&#x2F;languages-cloud-native&#x2F;</a><p>Actually there are some longer unedited versions I might release.
        • julianeon14 hours ago
          That&#x27;s a good answer that effectively rebuts the article&#x27;s claim that Go was a bad choice imo.
          • shykes13 hours ago
            The article&#x27;s point that Go is a bad fit for some of the low-level interactions with the kernel, is absolutely correct though. We had to do a lot of juggling to get it to work properly. But in the end it was fine. I would say it was the correct choice of language at the time, and it certainly contributed to Docker&#x27;s early success.<p>Another explicit goal was to facilitate contribution. We thought Go syntax was &quot;vanilla&quot; enough to attract a broader set of contributors than a more niche, opinionated language like Erlang, Haskell, Clojure etc. I think that also worked out well - Docker was known for attracting many contributors, many of them making their very first open source contributions. We even ran special meetups to help people become contributors, that was fun.
            • bmurphy19764 hours ago
              I think that&#x27;s so true and it was one of the keys to success of the project. I contributed the very first simplistic implementation of referencing linked containers by name. I never would have bothered if the project was written in C or C++ (I&#x27;m more than capable, I just don&#x27;t enjoy torturing myself). Go made it MUCH easier for a fly-by-night contributor such as myself to join the party.
            • DANmode13 hours ago
              This is the coolest set of contributions to HN this month, most likely.<p>Thank you.
    • stroebs16 hours ago
      Were you around for the big Moby open sourcing? What went down from your perspective? If I recall, it was a fairly dramatic move that was not driven by the interests of Docker corp.
      • shykes12 hours ago
        Yes, I was around for that. It was one of my skunkworks projects, as I had lost formal authority over engineering and product by then, and mostly used my &quot;founder aura&quot; to convince small pockets of people within the company to build cool things with me.<p>However Moby was a poor choice for a skunkworks project, it involved mostly communications and project management, which requires consistency and scale. Overall it was poorly executed because I failed to build enough support internally (&quot;Solomon&#x27;s at it again, let him do his thing&quot;). Here I am trying to explain it on Twitter after the keynote, using a picture of a hand-drawn diagram, because nobody in marketing or product was assigned to help. <a href="https:&#x2F;&#x2F;x.com&#x2F;solomonstre&#x2F;status&#x2F;855918630915133440" rel="nofollow">https:&#x2F;&#x2F;x.com&#x2F;solomonstre&#x2F;status&#x2F;855918630915133440</a><p>I think the goal of Moby was fundamentally correct: we were trying to replicate the Red Hat model, with well-scoped upstream components (linux -&gt; runc, containerd..) integrated into a commercial product (Docker -&gt; RHEL), with a faster-moving community project in between (Fedora -&gt; Moby).<p>This was a way for us to clarify that Docker was a <i>product</i>, with a community of users, and Moby was an <i>open source project</i>, with a community of contributors. This clarity was very much needed, because different communities were projecting very different expectations on the brand &quot;Docker&quot;, and these expectations conflicted with each other.<p>In a way, Moby aspired to be what CNCF ended up becoming - the &quot;big tent&quot; where the broader community meets to hammer out the general shape of the container stack. It seems obvious now that a single company can&#x27;t be the sole authority over such a vast scope. But in the first years of Docker, we really did have that level of influence, because we literally invented the market, and brought the community together in meetups and an ever-growing Dockercon. It&#x27;s only when Google and Red Hat pushed Kubernetes and CNCF, that our influence over the stack started to wane. Maybe it was for the better, I don&#x27;t know if we would have been up to the task as designers and engineers. But at least there would have been a consistent design, with a Linus Torvalds figure willing and able to say &quot;no&quot; to stupid and redundant features. For a while I played that role - but then I was replaced by SIGs and committees.
    • enriquto8 hours ago
      &gt; I&#x27;m happy to answer any questions you may have.<p>Why doesn&#x27;t docker respect unix filesystem permissions? I use docker on a shared server, i can delete docker images of other users. This is bonkers.<p>Is it a defect of a particular docker setup (following standard instructions on ubuntu), or it&#x27;s an intrinsic feature of docker itself?
      • drdec8 hours ago
        The docker daemon runs as root by default which IMHO is a security issue on machines with multiple users. For those machines, consider a rootless docker set up where each user runs their own docker daemon. (This is a supported configuration.)<p>All of the above applies to Linux, ymmv on other OSes
      • coldtea8 hours ago
        &gt;<i>Why doesn&#x27;t docker respect unix filesystem permissions? I use docker on a shared server, i can delete docker images of other users. This is bonkers.</i><p>Same reason a Postgres root can delete tables of other users.<p>It could, but it would be a shim on top of Docker to respect them.<p>Docker is a service daemon running as root, and the images of other users are just entries created by the other users in its registry, not server files that have permissions of each user.<p>When you&#x27;re creating a new docker image, you just send a command to that daemon process - you&#x27;re not passing your user account credentials to create. As far as docker is concerned, it&#x27;s just one more image it knows, not an image belonging to you specifically.
        • enriquto7 hours ago
          I understand the mechanism. I wanted to know the <i>reasons</i> for this choice.<p>Why choose to break user boundaries? Why can&#x27;t docker images be files in the possession of each user?
          • zbentley2 hours ago
            I think there&#x27;s two questions there:<p>Q: Why not have container builds and runs be invoking-user-specific by default? A: As the adjacent commenter pointed out, this would be an overlay on fundamentally rootful behavior. It would also remove a lot of &quot;works on my machine, works anywhere&quot;, since different user accounts running&#x2F;building containers could be restricted in different ways on different computers, so my &quot;docker build&quot; and your &quot;docker build&quot; might both work, but do different things or fail in different ways. Note that this isn&#x27;t the same as saying &quot;rootful dockerd is good&quot;; it&#x27;s not (usually)! That&#x27;s why rootless docker (<a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;engine&#x2F;security&#x2F;rootless&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;engine&#x2F;security&#x2F;rootless&#x2F;</a>) is recommended in many environments. But even in rootless, the run-user of the container and build are still uniform with the rootful behavior (albeit they require more participation from the daemon-owning user account WRT UID mapping&#x2F;user namespaces&#x2F;privileged actions), which I think is a good thing. Rootless docker, last I used it, behaved sensibly re: vs. user container images (kept per-user) and globally-cached layers (removable by anyone), but that may have been a specific configuration where I was using it.<p>Q: Why aren&#x27;t docker images user-browsable files? A: I can&#x27;t say for sure; I didn&#x27;t build Docker, but I hear the guy who did is in the neighborhood :). I suspect it&#x27;s a combination of caching (since build stanzas&#x2F;Dockerfile lines are intended to be proxies for the content address of a layer, there&#x27;s nothing to gain by making layer caches per-user), implementation convenience, and an influence from the Golang platform wherein (after the age of vendoring wound down) the developer tooling has many convenience layers that de-emphasize user visibility of build&#x2F;download artifacts <i>a la</i> &quot;go run&quot;. Docker goes further, though. And yes, I know that you can get at OCI images&#x2F;layers as files. But most people don&#x27;t.
          • coldtea7 hours ago
            They didn&#x27;t chose to break user boundaries. They chose not to artificially recreate them.<p>In the shared daemon model, there are no user boundaries. Even if the files belonged to each user permissions-wise, the central daemon running as root would be able to edit all.
      • kiney8 hours ago
        having access to the docker daemon is equivalent to root
    • smcleod8 hours ago
      Back in 2012 we used to give talks about how we ran all our CI builds in LXC containers, that came about because a bunch of us came from the BSD &#x2F; Solaris world of jails and it just felt natural.<p>The folks at infracoders &#x2F; DevOps meetups would think we were a bit &quot;out there&quot;, then what do you know - 2013 rolls around and we quickly started to shift to Docker (too early some might say), but not long after shifting from LXC to Docker it seemed many others finally started to come round to containerisation.<p>Fast forward to 2026 and I&#x27;ve recently done some work with a client who is only just &quot;getting into containers&quot; (a Windows shop).<p>Thanks for your early work to bring better containerisation to Linux Solomon. It&#x27;s funny to think we&#x27;re 13 years from Dockers release. Time flies.
    • memset16 hours ago
      I was a dotcloud customer around 2012. You might have responded to one of my many support emails.
      • shykes16 hours ago
        Ha ha, thank you for your trusting us back then! Hopefully it was a good experience? Scaling reliably on AWS was not so simple back then...
        • memset15 hours ago
          Haha, well, let’s say the experience motivated me to learn how to run nginx and uwsgi on my own :)<p>(And as a result that, with ansible, continues to be my preferred way to deploy while the rest of the world passed me by…)
      • aldousd66614 hours ago
        Digital meet cute right here!
    • happyash12 hours ago
      You&#x27;re actually the coding GOAT btw.
    • gradus_ad18 hours ago
      General question. When you were designing Docker, did you anticipate the success it would achieve?
      • shykes18 hours ago
        To give a sense of time: Docker launched in 2013, but it was one of many iterations of the same project, which I had been working on continuously since 2008. Over those 5 years, virtually nobody cared or understood what the hell I was working on. I lived in France and had no connection to the tech industry.<p>So, not only did I not anticipate this kind of success, I did not even have a reference frame for what success might even look like. All I knew was, I had an itch that I had to scratch, and I had nothing better to do :)
        • xtracto17 hours ago
          I remember in 2013 the first time someone showed me Docker [im in Mexico]. My first thought is that we already had Vagrant for setting up and running virtual machines through console.<p>I didnt get it at that time haha.
        • ecliptik18 hours ago
          In those years in the systems group I was working in at a fortune 500, we were very interested in this type of technology. Mostly using Solaris Zones and cgroups and trying to do this ourselves with limited results.<p>When Docker came out it solved so many issues we were having. Thank you for scratching that itch.
        • Waterluvian18 hours ago
          Was it always called Docker? Do you think the branding played a larger role in success than you would have expected?
          • ak21717 hours ago
            I believe Docker was always called Docker, but it grew directly out of the previous generation of the technology used by dotCloud (the company Solomon founded), which was using LXC with AUFS.<p>I think the breakthrough with Docker was bundling the AUFS-based image layer format with a centralized container image sharing registry. This was revolutionary at the time. But another huge element of success was Solomon and others evangelizing the technology relentlessly at meetups and conferences. I distinctly remember attending a demo in 2012 where the crowd was very excited to see the Docker workflow that we now take for granted, in large part because Solomon was so good at presenting it. At the time, I was working at a cloud PaaS company where we developed a similar technology on top of LXC and BTRFS (but no image registry). Docker really made me think hard about what we were doing, although I didn&#x27;t end up making any moves.<p><a href="https:&#x2F;&#x2F;jpetazzo.github.io&#x2F;2017&#x2F;02&#x2F;24&#x2F;from-dotcloud-to-docker&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jpetazzo.github.io&#x2F;2017&#x2F;02&#x2F;24&#x2F;from-dotcloud-to-docke...</a>
            • shykes13 hours ago
              You are correct :)<p>&gt; <i>the previous generation of the technology used by dotCloud [...], which was using LXC with AUFS</i><p>One small note, the earliest versions (2007-2011) were based on vserver then openvz, which predated lxc. Back then you had to patch the kernel to get container primitives. And since virtualization also required patches (eg. Xen), we had to carefully combine both sets of patches, which was poorly supported because nobody else was crazy enough to stack 2 kinds of virtualization!
          • hack131217 hours ago
            It used to be dotCloud iirc
            • memset16 hours ago
              Dotcloud was a PaaS:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=2032821">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=2032821</a><p>Then it pivoted to docker:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=6634002">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=6634002</a>
    • skinfaxi18 hours ago
      Given how things have changed since your creation and the way things are going, are there any things you would have done differently?
      • shykes17 hours ago
        There are many. But there is an alternative universe where I remained CEO instead of transitioning to CTO, and continued pursuing my product vision obsessively instead of compromising on it because of lack of self-confidence and a desire to be loved. I think I would have avoided a lot of the mistakes that the company made - but on the other hand, I would have made a fresh set of mistakes instead, so who knows what the outcome would have been!
        • skapadia10 hours ago
          Thanks. I needed to hear this. So many things in life can turn out differently if we can overcome our “lack of self-confidence and a desire to be loved”. It’s never too late!
    • QuantumNomad_12 hours ago
      Thanks for making Docker :)<p>Prior to the creation of Docker, did you have experience with other containerization technologies like Solaris Zones and FreeBSD Jails?<p>Did you at some point, either prior to or after making Docker for Linux, consider building something like Docker on top of FreeBSD Jails?<p>As a user of both Linux and FreeBSD, running Docker containers and Jails on each of them respectively, it would be interesting to see what FreeBSD Jails could be with something like Docker built on top of it while also taking advantage of other features on FreeBSD like fully using ZFS snapshots, ZFS send&#x2F;recv, ZFS clone, vnet, and so on. Such that spinning up a container would under the hood receive ZFS snapshots from the “Docker registry” equivalent server, and it might clone the snapshot locally before starting up a container instance so that multiple container instances would be using the same locally available ZFS snapshot that was received once from the “Docker registry” equivalent.
    • rdsubhas10 hours ago
      Thank you for docker.<p>Went from the good old days of vagrant (xen&#x2F;kvm) to lxc&#x2F;lxd to docker, and docker truly clicked all the way from development to production.<p>But honestly, thanks to Docker hub even more. The CLI is only one part of the puzzle, the worldwide registry is an immense undertaking.
    • operator-name17 hours ago
      I’d love to hear more about some limitations&#x2F;tradeoffs of docker that you made at the time that you regret in hindsight. Was there anything that you wish didn’t get baked into the “default norms” for containers, or areas that would benefit from more attention and redesigns?<p>I’ve been following dagger and it’s been really interesting to see the evolution of the design, and new set of abstractions. There’s also nix which has seen popularity, with their approach of building layered oci containers.
    • shepherdjerred16 hours ago
      I hope one day I can say something like “I made Docker” :,)
      • DANmode13 hours ago
        Not luck: pay attention to what the community needs, and be in a position to execute when you spot it.
        • OJFord4 hours ago
          On the contrary I think quite a lot of luck is usually behind the second part of that.
    • osener12 hours ago
      How did MirageOS end up powering parts of Docker stack?
      • shykes12 hours ago
        We acquired a small team of Cambridge-based computer science &amp; systems engineering wizards, called Unikernel. We then worked together to apply systems engineering to improving and expanding Docker in various ways.<p>The most successful project that we worked on together was &quot;project Piñata&quot; which later became Docker for Mac. It turns out bundling a Linux VM in a native Mac app, and integrating it into the host filesystem, networking stack etc requires lots of magic..<p>Now, most of the Unikernel team were very active OCaml developers, and created MirageOS among other ocaml projects. While working on Piñata, they simply reached for the tools they were most familiar with.
        • avsm11 hours ago
          (Unikernel cofounder here)<p>When acquiring our company, Solomon took us to a remote farm in France for a week for an offsite, fed us fantastic food and wine, and the first prototype of that Docker for Mac VM was working by the end of the week! It took a few months to hack together the shell. There&#x27;s a video of Solomon and the pinãta launch party on my blog ;-) <a href="https:&#x2F;&#x2F;anil.recoil.org&#x2F;notes&#x2F;cacm-docker-cover#getting-involved-in-docker" rel="nofollow">https:&#x2F;&#x2F;anil.recoil.org&#x2F;notes&#x2F;cacm-docker-cover#getting-invo...</a><p>There was a whole other slice of work we did for project Piñata too in the form of datakit (<a href="https:&#x2F;&#x2F;github.com&#x2F;moby&#x2F;datakit" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;moby&#x2F;datakit</a>) that was well ahead of its time. I was looking at this archived code again just last week while thinking about agentic git workflows!
          • shykes11 hours ago
            Hi Anil! Welcome to the 2026 Docker reunion thread :)<p>How did I not know about this video until today!<p>Hope you&#x27;re doing well.
            • avsm11 hours ago
              I am having a blast working on environmental science these days, and we’re long overdue a beer next in SF!<p>Am firing up Dagger to give it a try on our geospatial workflows for the first time just now; it’s got the same attention to CLI detail as Docker 1.0 did :-)
        • djs559 hours ago
          (Joining the reunion thread) I was just explaining to a new starter yesterday why Docker Desktop used the codename &quot;pinata&quot;. Also I reckon some of the more advanced ideas from back then are still relevant today, probably even more now that everything is changing (or can be changed) with agents. Hope all is well!
          • avsm8 hours ago
            I&#x27;m glad to hear that DfD&#x27;s repo is still the piñata!!! Congrats on the Docker sandbox launch as well, great to see it integrated now.
    • theanonymousone10 hours ago
      Thanks for making so many lives easier!<p>Docker is probably the highest-profile software written in Go. Are you happy with that choice? Would you do it in Rust if it was available at the time, or Zug?
    • kwakubiney9 hours ago
      Hi Solomon! Great product. How do you feel about the need for a central registry and not a p2p approach for distributing images? I always felt like p2p was the better and more scalable approach. Any reason why you decided on the centralized approach?
    • DockerizeMe5 hours ago
      Love docker, it changed the development ecosystems for the better.<p>In recent years I have shifted over to Podman, primarily because it defaults to rootless without a daemon.<p>Is that something you considered for docker early on , and if so why did you decide on running as root?
    • cole_dev17 hours ago
      Thanks for your innovation and helping developers! If Docker hasn&#x27;t been your focus in recent years, what have you mainly been working on and what&#x27;s been your favorite?
    • Fabricio2017 hours ago
      Thanks for developing such a valuable tool!
    • leosussan3 hours ago
      Thank you for making it :)
    • fnord7716 hours ago
      How does it feel to have fundamentally changed how many&#x2F;most enterprise software runs?
      • shykes12 hours ago
        I feel grateful for having seen from the inside one of those rare &quot;hypergrowth&quot; moments, it&#x27;s a terrifying and exhausting experience but I would do it all over again without hesitation.<p>I also feel lucky that people are still using my work, that it endures without me, and that it generates (mostly) positive reactions. There was a time where Docker had a lot of haters, which was hard on me. But with time I&#x27;ve noticed that the negativity gets mostly washed away, and what remains is positive interactions like the ones in this whole thread. So now Docker is this cool experience I share with lots of people around the world, and when we meet we get to talk about this shared interest. I love it.
    • potsandpans17 hours ago
      A while back you had this tweet which often gets cited, or at least _i_ personally think about it a lot.<p>&gt; If WASM+WASI existed in 2008, we wouldn&#x27;t have needed to created Docker. That&#x27;s how important it is. Webassembly on the server is the future of computing. A standardized system interface was the missing link. Let&#x27;s hope WASI is up to the task!<p>How are you feeling about WASI today?
    • Snacklive13 hours ago
      Not related to the topic but. Do you have any book recommendations? Not necessarily programming or system related, looking for great books ~
    • pgray15 hours ago
      basically my whole career has revolved around being good with docker and other related tech, so thank you! started on 0.7 :D
    • fHr3 hours ago
      Legend, thank you!
    • Tenemo18 hours ago
      Do you think e.g. students learning docker syntax at a uni is beneficial in 2026 or you think LLM-assisted programming means that Docker will become an abstraction under an abstraction and its setup will be mostly automated by LLMs? I find myself very rarely debugging or handwriting dockerfiles nowadays!
      • craftkiller17 hours ago
        This is a strange question because you could learn Dockerfile syntax in a single night. There are only 18 directives, and the average Dockerfile uses like 6 of them. 90%+ of Dockerfiles is just &quot;run this shell command&quot; and &quot;copy this file into the docker image&quot;. The only time it flirts with complexity is multi-stage Dockerfiles, but 90%+ of Dockerfiles are a single stage.<p><a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;reference&#x2F;dockerfile&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;reference&#x2F;dockerfile&#x2F;</a>
        • koolba16 hours ago
          &gt; The only time it flirts with complexity is multi-stage Dockerfiles, but 90%+ of Dockerfiles are a single stage.<p>And multi stage builds are just a directed graph short hand for having separate intermediate dockerfiles. There’s nothing special about them either.<p>If I had to pick one thing that is tricky for someone new to docker to understand, it’s how the filesystem state is cached using the previous state, the env, and the raw command text.
          • craftkiller6 hours ago
            Indeed, the one mistake I keep seeing new people make when writing Dockerfiles is writing them in a way that doesn&#x27;t optimize for caching. For example, they&#x27;ll copy their code into the container first and then start installing packages and dependencies. It&#x27;s an easy mistake to make because the end result is still a functional Dockerfile, they&#x27;re just wasting time and stressing the poor package servers unnecessarily.
        • subscribed6 hours ago
          Or multi-container compose files with atypical networking, or troubleshooting daemon permission issues.<p>Docker is much more than memorising a handful of Dockerfile directives.
      • phlakaton13 hours ago
        I think the key thing for a university student is to get the big ideas down: what is a container exactly, how does it work, how does it differ from a VM, what assumptions does it make about what you&#x27;re running (and how do you run something that doesn&#x27;t fit that pattern), why do images exist in layers and how are layers implemented, what are the performance benefits&#x2F;tradeoffs, etc. etc.<p>When I was learning Docker I can&#x27;t tell you how many people would describe it to me by analogy to a standardized shipping container, and start going off about shipping container dimensions and supersized cargo ships and trucks and railcars... and finish by smiling beatifically, like they had just explained the whole thing in a masterstroke. Let&#x27;s... uh... not do that. :-D<p>In a problem set, the student might learn a bit about dockerfiles or docker-compose.yml... but only, I think, so they can try building and running a container of their own!
      • Kwpolska10 hours ago
        If you&#x27;re going to fully delegate something so trivial as Dockerfiles to slopmachines, why go to university at all? You don&#x27;t need to learn anything if you delegate everything to the slopmachine.
      • xyzzy_plugh17 hours ago
        I&#x27;m gonna be real with you. No one needs to know docker syntax. Most engineers just copy and paste chunks of Dockerfiles around anyways.<p>Docker syntax is one of those things that just immediately falls out of my head when I close the editor. I don&#x27;t care about it at all.<p>Even better: there are many, many tools that build OCI images without using the Docker syntax. I haven&#x27;t hand-written a Dockerfile in at least six years.<p>LLMs have not loved the needle here in my sphere, it was already bouncing off of the zero on the gauge.<p>edit: this isn&#x27;t to say the syntax is good or bad (though there are several questionable parts of it) but extremely simple, and concise enough that you can just look up literally any command with great ease. It&#x27;s surely a large part of its success, for better or for worse.
        • jimbokun15 hours ago
          I find the Dockerfile syntax easier to use than any if the tools that generate it indirectly.
    • jacques_chester13 hours ago
      I like to tell people the story of how I got a pre-release peek and frankly didn&#x27;t understand what I was looking at. You emailed me in reply to a comment I made around that time[0].<p>Funny how little has changed except the names, I guess.<p>[0] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=5347255">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=5347255</a>
    • lstodd6 hours ago
      Do you feel that docker was done for as of about ten years ago and something better should have replaced it?
    • layer818 hours ago
      If you were implementing an operating system (free from compatibility concerns), what would you do differently to better support lightweight containers?
    • verdverm16 hours ago
      What learnings did you take from Docker when conceiving Dagger? Or is it more about unlocking BuildKit?
    • irishcoffee18 hours ago
      Oh wow, hi! I think my biggest “gripe” with docker is that everyone grabs it as a hammer and views many problems as a nail. Am I way off base with that? What was your original vision for how docker might be used in the wild?
    • stemonteduro9 hours ago
      Seems like this thread has become an AMA lmao
    • hahahoo7 hours ago
      [flagged]
    • RomannBami4 hours ago
      [flagged]
    • tannertech12 hours ago
      Thanks but I still run LXCs &#x2F;s<p>You&#x27;re a genius well done making containerization actually happen.
    • bijmtir17 hours ago
      [flagged]
      • hack131217 hours ago
        what
        • bijmtir17 hours ago
          Have a look at his submissions story. The political ones. Full in propaganda outlets. Check his other public political commentary. Some of his comments here. It is strange how someone capable of thinking can hold on to these ideas without being blackmailed (eg. Epestin) or a grifting politician.
          • bijmtir17 hours ago
            Here is an example of supporting apartheid because “it was settled”:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47200328">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47200328</a>
    • pjmlp13 hours ago
      I am firmly convinced that had Rust been more mature at the time, the pivot from Python would have beem into Rust instead of Go.<p>Am I on the right track?
      • thephyber12 hours ago
        Why?<p>Python and Go are both memory-managed languages. That is perhaps the hardest part of programming (outside of getting the code to do what is intended).<p>Go and Rust are both compiled, but Rust requires the developer to figure out all of the memory management before compilation, which slows down development to a crawl.<p>Almost no company will rationally choose Rust over Go if they know how the development speed tradeoff looks like.
        • pjmlp12 hours ago
          Because Go is a badly designed language that only took off thanks to Docker, and as the article points out, a few C workarounds were anyway required to make it possible in first place.<p>I would have chosen C++, but given that isn&#x27;t the new darling any longer as in the 1990&#x27;s, that begs the question of the new kid in town that everyone is now rewriting everything into.
          • kccqzy4 hours ago
            In 2013 C++ was having a moment. The C++11 standard was a huge release with meaningful improvements. It was a great time to start a new project with C++.
      • Copenjin13 hours ago
        This obsession with Rust is very hard to understand
        • brabel12 hours ago
          Yeah but the post criticized Go for a project like Docker, so it makes sense to ask what else could have been used. At the time there weren’t many system languages fit for the purpose.
        • pjmlp12 hours ago
          The obsession isn&#x27;t with Rust, the obsession is with Go not being a good programming language and the only reason it took off was thanks to Docker.<p>So they would probably never rewrite from Python into C or C++, because not cool, too hard kind of motivation, otherwise they would not have picked Go.<p>So that begs the question, if the obession as you call it, was already a thing back then, would Rust have been the lucky candidate?
          • Copenjin10 hours ago
            It didn&#x27;t really need Docker to &quot;take off&quot;, I&#x27;m not even sure if it actually ever did the take off...<p>It&#x27;s a language with its pros and cons, I like the simplicity, it&#x27;s a good choice for services that just expose an API&#x2F;GRPC&#x2F;etc... and the performances are not that bad.<p>This &quot;but rust is faster&quot; obsession often comes from people that don&#x27;t even know what they are talking about or are even able to consider if thinking about performance make sense for a specific use cases. Sometimes, or at least it did before LLMs, having something simple to modify was more important that chasing supposedly higher performance because the rust people keep blabbering about it.<p>&gt; would Rust have been the lucky candidate?<p>Probably not, considering that the author give me a &quot;simple solutions are best&quot; vibe.
            • pjmlp9 hours ago
              That being the case, it would have stayed Python with some C bindings, instead of the cool new Google language still not yet 1.0.
          • jazzypants12 hours ago
            I generally agree with your comments, but do you really think that a language created by such luminaries as Ken Thompson and Rob Pike and endorsed by Google really needed Docker to &quot;take off&quot;?
            • pjmlp11 hours ago
              Yes, see Plan 9, Alef, Inferno and Limbo, such luminaries as Ken Thompson and Rob Pike aren&#x27;t always right.<p>As for endorsed by Google, see Dart and Flutter, Android Things, Fuchsia.<p>Now everything combined, plus Docker and Kubernetes, yes it was definitely a factor.
              • OJFord4 hours ago
                I would absolutely say Go took off thanks to kubernetes ecosystem &amp; CNCF projects in general, but I&#x27;ve never particularly associated it with Docker myself.
                • pjmlp1 hour ago
                  Kubernetes was Google&#x27;s reaction to Docker, was originally written in Java, and only got rewritten into Go, after a Go advocate joined the team and pushed for a rewrite, there is a FOSDEM talk on its evolution.
        • thephyber12 hours ago
          It&#x27;s not hard to understand. It&#x27;s just not rational to anyone who actually calculates how performant it is (very fast, I agree) with how long it takes to write.<p>Once I realized how difficult it is to write complex code that actually satisfies the borrow checker, I was perfectly happy with writing somewhat slower code in Go or Python.
          • pjmlp12 hours ago
            Anyone that has written enough systems software in various kinds of languages, using Rust isn&#x27;t that bad, only when coming from scripting languages.<p>Anyway, I clarified on a sibling comment the reasoning behind my question.
  • vbezhenar16 hours ago
    What made Docker unique IMO is not the container technology itself. I used chroot 20 years ago and it worked just fine. Yes, no network namespaces; no process namespaces, but I don&#x27;t even think these are that important.<p>What made Docker unique were there things:<p>1. Dockerfile concept. Building images layer by layer. Caching layers. Everything in a single file. It made possible to iterate on image quickly. It made possible to implement CI builds efficiently.<p>2. Docker network registry concept. Putting universal images onto a server and share them with the world.<p>3. Momentum. A lot of software that was traditionally complicated to deploy, suddenly appeared in docker servers. I remember how fascinated I was, when I could deploy wordpress website with tiny docker-compose. And how contained it was. I could just delete every trace of it from my host. I always felt uneasy installing various things onto my host and docker just solved that uneasiness.
    • crote15 hours ago
      Interesting, I would probably say more-or-less the exact opposite.<p>The main draw for me was that it made containers <i>absolutely trivial</i>. Sure, you <i>could</i> spend ages figuring out how to DIY some isolation, but in practice an awful lot of people stopped at having Apache fork its workers with a non-root uid. You want isolation and a repeatable setup? Spin up another VM and have Ansible set it up! Docker provided a batteries-included lightweight way to isolate and manage multiple applications at once.<p>Dockerfile? I would&#x27;ve been happy with a Bash script, or handing it a tarball. Caching and fast iteration? Compute is basically free. A single file? Well, there&#x27;s already a whole bunch of app source code files sitting next to it, so what&#x27;s a few more in a `setup&#x2F;` directory? The registry? A shared base could&#x27;ve also been achieved with, say, a `deb` file providing the right dependencies, files, and post-install scripts.<p>I do agree on the momentum, though. Having every piece of software reduced from a multi-page setup guide to a single command and not risk screwing over your entire machine is absolutely magical.
      • andix4 hours ago
        Dockerfiles are completely optional. It&#x27;s just one way to build images.<p>You can absolutely build images with a bash script, here&#x27;s an example (its vibe slop, but it works): <a href="https:&#x2F;&#x2F;github.com&#x2F;andi0b&#x2F;vibe-todo&#x2F;blob&#x2F;main&#x2F;docker-build.sh" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;andi0b&#x2F;vibe-todo&#x2F;blob&#x2F;main&#x2F;docker-build.s...</a>
        • ninkendo4 hours ago
          &gt; You can absolutely build images with a bash script, here&#x27;s an example<p>That script is just calling docker to build layers manually via `docker create`&#x2F;`docker commit`&#x2F;`docker run`&#x2F;etc, using a Dockerfile as a rudimentary DSL over it. It&#x27;s still building images &quot;the way docker does&quot;, but in a more error-prone way.<p>What GP is trying to say with &quot;I would&#x27;ve been happy with a Bash script, or handing it a tarball&quot;, is that it ought to support giving it a <i>literal tarball</i>, like you&#x27;d get via `make install DESTDIR=.&#x2F;out &amp;&amp; tar -czf image.tgz -C .&#x2F;out .`. Or just tar&#x27;ing up the build artifacts of any other existing, competent build systems. There&#x27;s no need to treat building an image as some &quot;containerized&quot; thing where you have to run inside the bottom layer of the container to build the artifacts.<p>In fact nowadays with the best practice of split container builds, there&#x27;s no benefit of saying &quot;the container is guaranteed to have the dependencies because it&#x27;s the container you built with&quot;, because in practice nobody wants to ship their runtime containers with an entire build environment in them. So they do one container to do the building, then pick out the artifacts they need and place them in the runtime container. At that point, what&#x27;s the point of using containers to build again?
          • zbentley1 hour ago
            You absolutely can do that. Very easily in fact: <a href="https:&#x2F;&#x2F;blog.ttulka.com&#x2F;building-container-images-without-dockerfile&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.ttulka.com&#x2F;building-container-images-without-do...</a><p>And for most people, that&#x27;s a bad idea. Most people don&#x27;t have to know what RPATH, ldd, multiversion&#x2F;simlink library discovery, etc are. And even if they did, Dockerfiles give you an easy way to do something you couldn&#x27;t easily do before: multi-stage builds and a highly robust way to say &quot;drop the parts of my transitive hull that were only relevant at build time&quot;. Dockerfile semantics kind of descend naturally from needing the behavior of stages, parallelization, cache keying for image layers, semantic layering (FROM), and making simple use-cases relatively at-a-glance&#x2F;contained.
          • andix3 hours ago
            Nothing stops you from doing that either.<p>Edit: or is something stopping you from doing it this way? It seems like people just don&#x27;t like Dockerfiles, but instead of just doing it differently (which is possible, it&#x27;s just a tar file and a manifest), they keep complaining.
        • lokar1 hour ago
          In generally build minimal images file by file with bazel. Fully hermetic.
    • compsciphd7 hours ago
      I agree, that #1 and #2 are what made docker &quot;unique&quot; technologically, but I don&#x27;t believe Docker they were a docker innovation.<p>Basically both described in <a href="https:&#x2F;&#x2F;www.usenix.org&#x2F;legacy&#x2F;event&#x2F;lisa11&#x2F;tech&#x2F;full_papers&#x2F;Potter.pdf" rel="nofollow">https:&#x2F;&#x2F;www.usenix.org&#x2F;legacy&#x2F;event&#x2F;lisa11&#x2F;tech&#x2F;full_papers&#x2F;...</a> (in detail) and <a href="https:&#x2F;&#x2F;www.usenix.org&#x2F;conference&#x2F;usenix-atc-10&#x2F;apiary-easy-use-desktop-application-fault-containment-commodity-operating" rel="nofollow">https:&#x2F;&#x2F;www.usenix.org&#x2F;conference&#x2F;usenix-atc-10&#x2F;apiary-easy-...</a> (in a &quot;sexy&quot; use case to try and motivate it) a few years prior. (and I get annoyed when people say &quot;so you&#x27;re saying you invented containers?&quot; because they equate docker with containers. And I&#x27;m like no, containers existed for a long time going back to logical partition on mainframes in the late 70s&#x2F;early 80s. All I claimed was a novel way of building and distributing file systems for them that made them much more useful and valuable and in apiary a novel desktop setup that made use of it to improve desktop security)<p>Even the original docker implementation of using a union fs (docker using aufs) was the exact same as described.<p>Even if docker came up with it independently (though conferences like LISA and Usenix ATC are where the papers were presented and were where companies like dotcloud&#x2F;docker would advertise their wares (and in fact docker inc was an exhibitor there, so it wasn&#x27;t hidden), the differences between the uniqueness of docker and what is described in the paper are minor (in my perhaps somewhat biased opinion of course), and i was clearly first.
    • kqr12 hours ago
      The momentum, I think, matters a lot more than the other two. Makefiles already allowed you to build layered things with caching. Artifact repositories have also long been a thing.<p>But the argument I used for advocating Docker in environments where people were not fans of it was that the Linux container had become the de facto standard unit of deployment. There is so much tooling written under that assumption, and if you want to use any of that tooling, you need to package your deployments as Linux containers, even if you want nothing to do with Docker otherwise. That&#x27;s why it had so much momentum.<p>Then a fourth point I think you&#x27;re missing is that the concepts used by Docker are relatively simple. Before I understood what Linux containers were, I used to think things like, &quot;Why would I care about Docker when I can isolate my processes with Linux users, cgroups, namespaces, etc.&quot; What I didn&#x27;t know at that time is that &quot;Linux users, cgroups, namespaces, etc.&quot; is exactly the thing Docker was giving a friendly UI to.
    • agumonkey7 hours ago
      It hit a social need more than a technical one it seems.
  • cloudyporpoise12 minutes ago
    I see less and less of a need for Docker when running simple linux hosts and building with terraform \ ansible. For any codebase with dep management it is great and I still prefer building code through Docker but that&#x27;s about all I use it for.
  • slowin17 hours ago
    I prefer Podman most of the time, but Docker is&#x2F;was amazing and a great DX put on top of the so called &quot;5 different linux kernel features in trenchcoat&quot;. That&#x27;s the selling point, it&#x27;s super lightweight and takes full advantage of the OS features that were already there (or being developed) but were awkward to use and required tons of specialized knowledge.
    • kvirani16 hours ago
      Does Postman sidestep these weird things about Docker? Or just some of them?
      • thayne16 hours ago
        I assume you mean podman?<p>The first two are just kind of the nature of containers on linux, and applies to any container technology.<p>Podman does allow you to run it as a non-root user (with some limitations), that was in fact one of the biggest motivations for making podman. This wasn&#x27;t possible at all in the early days of docker, it wasn&#x27;t until linux introduced user namespaces, where the root user inside the namespace mapped to a non-root user id outside the namespace that non-root conatiners were possible.<p>And podman, unfortunately IMO, is also written in go.
        • badreligion426 hours ago
          &gt; podman, unfortunately IMO, is also written in go.<p>Podman, by default, uses crun as the container runtime, which is written completely in C. Podman is basically just a frontend for managing running containers.
          • wolttam4 hours ago
            &gt; Podman, by default, uses crun as the container runtime<p>Not anymore, they switched to runc (but it can use any OCI compliant runtime)
      • cdmckay12 hours ago
        I switched to Podman because it’s daemon less (no resources are used unless a container is running) and it doesn’t need to run as root.<p>Otherwise it’s basically the same and you can continue using your Dockerfiles and Docker Compose files.<p>Unless you’re doing something really fancy it’s basically a drop-in replacement.
        • MereInterest7 hours ago
          The only issue I’ve run into with Podman is that, like docker, I can’t have the container’s process be part of my shell’s foreground process group. For docker the daemon (either rootful or rootless) makes that inevitable, but podman has better rootless support, so I’d been hoping.<p>Unfortunately, there’s an unconditional setsid during podman’s container setup, which as far as I could tell exists so that the container can be detachable.<p>(This was all so that I could have the same job management with Ctrl-Z, SIGSTOP, SIGTSTP, fg, and bg, regardless of whether the process I’m running starts up a container. The only way I’ve found to have that is by handling chroot&#x2F;unshare myself.)
          • Joker_vD4 hours ago
            UNIX job management is fundamentally broken already in that it simply can&#x27;t be properly nested, even with PID namespaces. If the &quot;container’s process [is the] part of my shell’s foreground process group&quot;, then it can not, literally <i>can not</i>, job manage its children.
            • MereInterest37 minutes ago
              Clearly, the solution is to extend the `kill` syscall to accept the PID as a Gaussian integer, with both real and imaginary components. That way, we can preserve the current behavior of `kill(+123, sig)` and `kill(-123, sig)` as sending a signal to a single process or to a process group, respectively, and will then allow `kill(+123*i, sig)` as sending a signal to all processes that are either within a process group have a direct or indirect parent within that process group. I don&#x27;t know what we&#x27;d use the negative imaginary numbers for, but I&#x27;m sure we could think of something.<p>If not for the uncatchable SIGKILL&#x2F;SIGSTOP, I&#x27;d say that any process that calls `setsid` is responsible for ensuring signal propagation across the pgid. But since those are uncatchable, I tend to shrug and figure that I&#x27;ll avoid setsid wherever possible.<p>There was a proposal at one point that would have had `unshare(NEW_CGROUP)` place the process into a child cgroup, rather than merely changing the name of the current cgroup. This would have meant that cgroups could actually be used for nested process management. Unfortunately, there&#x27;s no guarantee that a process can ever make nested cgroups it wouldn&#x27;t be sound for all supported resource constraints, so that proposal never went in. But that would have been nice to actually have nestable job management.
      • nocman15 hours ago
        I think you meant &quot;Podman&quot;, but yes, Postman almost entirely sidesteps docker.<p>:D
        • tecleandor9 hours ago
          Sidesteps Docker, but the whole cgroups, namespacing and that kind of &#x27;weird&#x27; stuff is still basically the same.
      • asveikau14 hours ago
        I think the only thing in the &quot;weird things&quot; list that don&#x27;t necessarily apply to another container system on linux would be the go-specific issues.
        • 80fj0348i14 hours ago
          Most of the other container runtimes don&#x27;t require root for many of the use cases in which Docker does.
          • asveikau3 hours ago
            Care to give some examples?<p>A lot of the more important syscalls involved do require root.
            • 80fj0348i57 minutes ago
              I&#x27;ve used crun without root for a lot of practical use cases, if you are only doing limited use of the network and are careful with volume mounts it works pretty well.<p>Podman also has a fully rootless mode which can work for many uses: <a href="https:&#x2F;&#x2F;github.com&#x2F;podman-container-tools&#x2F;podman&#x2F;blob&#x2F;main&#x2F;docs&#x2F;tutorials&#x2F;rootless_tutorial.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;podman-container-tools&#x2F;podman&#x2F;blob&#x2F;main&#x2F;d...</a>
  • suprjami18 hours ago
    Always nice to see someone demystifying a complex thing by learning the building blocks it&#x27;s made from.<p>Knowing this, you might find rootless Podman&#x27;s fork-exec method of starting containers to be more sensible. I certainly do. No root, no daemon, no socket.<p>If you want to learn more about the Linux Kernel namespaces which work together to make a container, this LWN series is really good: <a href="https:&#x2F;&#x2F;lwn.net&#x2F;Articles&#x2F;531114&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lwn.net&#x2F;Articles&#x2F;531114&#x2F;</a>
  • jlhawn13 hours ago
    &gt; Docker’s container runtime, runc, is written in Go.<p>I worked at Docker from 2014-2019. The most important part is actually written in C.<p>[I wrote a whole comment here about to explain how the hack works because I was too fixated on how technically incorrect &quot;written in Go&quot; is. Then I went back to read the rest of the article only to see that the paragraph immediately after this kind of explains it in its own way! Let that be a lesson to always finish reading the article before posting about it.]
    • rob749 hours ago
      Not to contradict anything you wrote, but if you look at the language stats for <a href="https:&#x2F;&#x2F;github.com&#x2F;opencontainers&#x2F;runc" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;opencontainers&#x2F;runc</a>, it has 68.5% Go, 27.1% Shell and 3.5% C, so it&#x27;s fair to say that it was &quot;written in Go&quot;, even though the most important part was C - same as e.g. Doom was written in C, even though it used assembly for optimizing the performance-sensitive parts.
      • jlhawn2 hours ago
        True! there are lots of layers of abstraction written around that core `nsenter` piece of libcontainer. I just take issue with the &quot;Go is kind of a terrible language for a container runtime&quot; claim made by the OP. The maintainers&#x27; choice to use an expressive high-level language for most of the codebase is a practical one, I think. They also knew when it was not the right tool for the job and when to pull out the C bindings or how to work-around issues with forking the process. The OP mentions this, but for fork&#x2F;re-exec helpers in the engine, this is where it lives now: [1]. I specifically remember needing to use something like this for the `docker-untar` helper during image pulls (I worked primarily on the container image filesystem-setup part of Docker) so that extraction of the image layer archives could be done in a chroot with fewer privileges. It was a security-sensitive part of the docker daemon and previously there were all sorts of malicious ways that a container image could be built so that contents are extracted _outside_ of the place they should be. This is the &quot;images are just folders&quot; part of OP&#x27;s article. Another part I find funny is the &quot;Containers really aren’t real&quot;. I think the best part of this is that when you use docker to &quot;create&quot; a container (`docker container create`), it mostly just creates the container&#x27;s rootfs directory (it&#x27;s actually multiple directories combined using an Overlay Filesystem) and its configuration file. The container doesn&#x27;t actually &quot;exist&quot; until the process starts which is a separate command (`docker container start`) because Docker doesn&#x27;t actually instantiate the namespaces or launch the container task until start time (and generally in Linux, namespaces are tied to living processes unless explicitly held open via bind mounts or another process reading a `&#x2F;proc` file).<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;moby&#x2F;sys&#x2F;tree&#x2F;main&#x2F;reexec" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;moby&#x2F;sys&#x2F;tree&#x2F;main&#x2F;reexec</a>
    • shykes11 hours ago
      Hi Josh!
  • j16sdiz17 hours ago
    Every statement in the article make me ask: &quot;what&#x27;s weird about it?&quot;<p>Everything in that list feel natural when you know how things evolves over many years. Maybe it is just me getting older and less curious.
    • stingraycharles17 hours ago
      And not a single mention of the actual weird decision, a client &#x2F; server model which complicates permission management by at least two orders of magnitude.
      • eddythompson8015 hours ago
        I’d argue in 2013, the client &#x2F; server model is what made docker a success. It allowed for a seamless, and mostly identical, experience for docker on Mac, Windows and Linux for one. It met developers where they were, daily-ing a Mac or a Windows and deploying on Linux headless servers. It had benefit on its native Linux system too that took all the alternative solutions another 8 or 9 years for the entire Linux ecosystem to develop enough solutions around containers to make a daemon unnecessary while still offering docker DX.
        • kccqzy15 hours ago
          Oh yes docker-machine was quite good. You can create a machine on a Mac by using VMware, VirtualBox, or using the cloud such as EC2. Then your docker CLI can work with all of these machines seamlessly without knowing any details about the machine.
      • thayne15 hours ago
        That&#x27;s actually a design decision made to work around the limitation of having to run as root. Since the container had to be started as a privileged user, if you want non-privileged users to be able to start contianers you either need a setuid binary or a client&#x2F;server interface like docker has. There are pros and cons to each of those options.<p>Now it&#x27;s possible to create containers without elevated privileges (assuming user namespaces are allowed), but that wasn&#x27;t possible until long after docker had established the client&#x2F;server model.
        • lifeisloving15 hours ago
          I spent my whole day dealing with Docker permissions today. Whats interesting and dangerous is how docker just overrides ufw rules like they do dont exist.
          • freedomben3 hours ago
            This is the primary selling point of podman to me actually: If you run any non-standard firewall rules (in my case I use virt-manager to run a handful of VMs using a bridge so each VM can get an IP directly on my router&#x27;s subnet), some stuff may suddenly break because Docker takes a wrecking ball to the firewall rules.
      • schmichael16 hours ago
        lxc never had a daemon but Canonical added one (lxd in 2015) and lxc forked it to incus to be community managed.<p>rkt (2013) was CoreOS&#x27;s alternative to Docker and was daemon-less and failed.<p>Podman came along relatively late (2018) and benefited from a lot of Linux kernel and systemd improvements since Docker was designed.<p>So while arguably the client&#x2F;server model is outdated for container management tools, I&#x27;m not sure it&#x27;s weird. This is my workstation for example:<p><pre><code> schmichael@fedora:~$ ps -e -o comm= | rg &#x27;d$&#x27; | wc -l 67 </code></pre> Daemons are maybe the least weird paradigm you can choose for a Unix program.
      • modeless17 hours ago
        Yeah, the daemon is the real problem with Docker.
      • slowin17 hours ago
        This is why I prefer Podman.
    • paxy17 hours ago
      A lot of people start using Docker as a black box and have the mental model of a VM, and when they start digging into the internals all the &quot;weirdness&quot; starts to exhibit itself.
      • j16sdiz16 hours ago
        Maybe. That&#x27;s why i start thinking i am getting old and less curious :(
      • dboreham17 hours ago
        These days they may as well have the mental model of Docker when they start using a VM :)
    • thayne15 hours ago
      Most of them don&#x27;t seem that weird to me. Except the use of go. It definitely seems strange to pick a language that can&#x27;t natively call clone, one of the most important syscalls for using namespaces and implementing containers.
  • tyingq18 hours ago
    Poke around in bocker[1]. For technical people, it makes the same points the article makes in a way that&#x27;s very clear.<p>[1] &quot;Docker implemented in around 100 lines of bash&quot; <a href="https:&#x2F;&#x2F;github.com&#x2F;p8952&#x2F;bocker" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;p8952&#x2F;bocker</a>
    • DANmode12 hours ago
      Bocker has a drastically smaller inherent software attack surface than mainline Docker, yet its container isolation is practically non-existent, making it way easier to exploit and break out of.
  • colinmarc12 hours ago
    Lots of positive stuff in this thread which I won&#x27;t bother repeating. Instead, I&#x27;ll add a few ambivalent points:<p>- Today, a lot of functionality still in Docker has been upstreamed into the (Linux) kernel, so containers can be much simpler (and rootless). Docker is still carrying around some of that cruft, which is what makes it slower and heavier than Podman.<p>- As a devex technology, Docker&#x2F;containers have been massively successful, but not as infrastructure. Containers never became secure enough to run multitenant workloads without some other form of isolation, so they ended up being redundant with KVM (or gVisor, or a similar second layer) in production a lot of the time.<p>That second contradiction led to lots of inefficiency. For example, on Google App Engine, for years when you ran a deploy it would create a VM just to run a single container.
    • KaiserPro11 hours ago
      I would also point to no secrets primitive.<p>K8s requires some sort of tool to have any hope of storing secrets in a way that isn&#x27;t trivallly findable from the rest of the cluster.<p>But, perhaps I am being too harsh, its not like there are secrets primitives in linux that are easily deployable to namespaces&#x2F;cgroups.
  • andreygrehov14 hours ago
    I created Range (for fun). No daemon. No root.<p>A few cool tricks:<p>`range shell python:3.12` - opens a shell image without pulling the entire image.<p>`range shell ubuntu --commands` - you are in Ubuntu. Type any command Ubuntu doesn&#x27;t have and it comes from the image that has it. On the fly.<p>`range run --network none ubuntu` - network-isolated sandbox<p>range run ebs:&#x2F;&#x2F;snap-... -- cat &#x2F;etc&#x2F;os-release - opens an EBS snapshot with no EC2 instance<p>Another cool trick:<p>`range run python:3.12 --mount hf:&#x2F;&#x2F;moonshotai&#x2F;Kimi-K2-Instruct:&#x2F;model -- du -sh &#x2F;model` says 959G instantly :)<p>Check it out here - <a href="https:&#x2F;&#x2F;getrange.sh" rel="nofollow">https:&#x2F;&#x2F;getrange.sh</a><p>Most importantly, Range doesn&#x27;t need any daemon, any container runtime, any registry or any image conversion. One binary only. On a Mac it boots its own tiny Linux VM per session, and on Linux it uses KVM.
    • andreygrehov14 hours ago
      It also works with more than contaienr images - HuggingFace repos (hf:&#x2F;&#x2F;org&#x2F;model), S3 (s3:&#x2F;&#x2F;bucket&#x2F;...) or any HTTP server really.<p>Range always reads only the bytes your program touches. Nothing else. You can prob shell into a 1TB image from a Raspberry Pi :)
  • fulafel16 hours ago
    &gt; I decided to make my own container runtime for fun [...] Unlike VMs, containers are just processes<p>Try to make your own VM runtime next, you might be surprised!
    • elevation26 minutes ago
      &gt; containers are just processes<p>Johnathan Blow&#x27;s talk on the bronze age collapse pushed me to simplify my production stack. I wanted &#x27;just processes&#x27;, so I stopped using docker there. I&#x27;m happy with the result.
  • sreekanth85016 hours ago
    I started hating Docker after seeing all the cargo culting on Reddit. Whenever someone asks about deploying an app on Linux, there&#x27;s always at least one comment saying, Just use Docker. We finally ended up building our own deployment automation tool for our entire stack that doesn&#x27;t use Docker at all.
    • eleventen15 hours ago
      That comment invariably comes up because for most people it’s the objectively correct and most well supported option. If you’re asking redditors how to deploy something, you’re precisely the person docker is for.
    • steezeburger14 hours ago
      Even when I&#x27;m not using Docker to deploy something, I&#x27;m _probably_ using oci images at the least, but I&#x27;m generally running my local dev stack with Docker compose. Not always, but I use it in a lot of projects.
  • gzapp18 hours ago
    That part about the threading was a huge source of issues back in the early days. Goroutines could hop threads and it&#x27;s the threads namespace&#x2F;cgroup configuration that gets inherited when forking..<p>One of the gnarliest issues I recall was where network namespaces could occasionally not be cleaned up correctly. So &quot;randomly&quot; (but more likely under certain loads) the networking of a reused thread would get jacked and Docker could no longer pull images.
    • LambdaComplex13 hours ago
      Plus Go&#x27;s function for locking a goroutine to an OS thread was broken to the point where you could not safely rely on it for quite a while.
    • dboreham17 hours ago
      Never, ever, ever, write your own userland threading library.<p>(rule broken by almost every language in common use, unfortunately)
      • zbentley1 hour ago
        It worked out pretty well for Go. Nothing else besides Erlang cracked the parallelism UX&#x2F;runtime-performance code as well as Go did, and it didn&#x27;t have the drawbacks of Erlang.<p>&gt; rule broken by almost every language in common use<p>I don&#x27;t think so. Go&#x2F;Erlang&#x2F;Java do break it (Java very recently). C&#x2F;C++&#x2F;Rust&#x2F;C#&#x2F;JavaScript&#x2F;Ruby&#x2F;Python&#x2F;Perl&#x2F;TCL don&#x27;t break it. PHP ... sort of breaks it, (IMO they just hide cooperative nonparallel concurrency in a nice API, but I&#x27;m not well-informed on php)?
      • eddythompson8015 hours ago
        That’s an absurd statement. Optimizing every language around what a runc-like program would need is absurd.
      • creata16 hours ago
        Where does this advice come from? Most web servers would use a lot more resources if they didn&#x27;t use userland threading, wouldn&#x27;t they?
        • Joker_vD4 hours ago
          This advice comes from threads on Linux being second-class citizens. As TFA itself states, there are some syscalls that really should only be made in a single-threaded process which is frankly <i>insane</i>... but that&#x27;s the legacy of starting with the processes-only model and patching it years later to have threads as well.
        • gertop15 hours ago
          I think you&#x27;re confusing userland threading (also known as green threads) with a regular thread pool implementation (that uses regular OS threads).<p>Because most web servers use OS threads. Nginx, Apache, litespeed, they all spin up `core count` threads but they can all work single threaded just fine as well.
          • creata14 hours ago
            No, I mean that Tokio, Go, etc., were built with general-purpose web servers in mind, and they decided that lightweight threads were necessary for that purpose because OS threads had too much overhead to be used per-request.<p>NGINX uses a state machine per task, which as far as I know is kind of what Rust&#x27;s async functions end up desugaring to.
            • zbentley1 hour ago
              Tokio&#x27;s not a lightweight thread&#x2F;green thread system. It&#x27;s an event loop, just like Javascript&#x27;s, optionally with a fixed number of threads running work underneath.<p>For Go: you&#x27;re likely right that OS thread overhead was the main reason for Goroutines, but I don&#x27;t think it was the only one. There is also a ton of ergonomic efficiency to be had via green threads; like async&#x2F;await, they&#x27;re kind of a syntactic unlock that allows you to very liberally use goroutines&#x2F;channels as a means of <i>semantically modelling</i> actors&#x2F;state&#x2F;data flow in your program, where doing that with regular OS threads is both dangerous and (given the start&#x2F;stop overhead of threads on lots of other platforms) feels like kind of using a howitzer for a flyswatter. Golang saying &quot;yeah, create a million of these, we don&#x27;t care, it&#x27;s 4 machine instructions per to start one&quot; was pretty liberating for a lot of people.<p>The goroutine architecture also unlocked some nice performance at the OS level: GC latency improvements became easier, and some IO multiplexing efficiency <i>a la</i> epoll became almost free to implement due to the ability to cheaply move and suspend goroutines.
              • creata56 minutes ago
                &gt; Tokio&#x27;s not a lightweight thread&#x2F;green thread system<p>It&#x27;s not green threads (and maybe not lightweight threads; there are so many names for things that may or may not be considered the same...) in the sense of stackful coroutines, but either way, it&#x27;s a userspace implementation of multitasking on top of a smaller number of OS threads, which is the part that&#x27;s relevant to my question.
  • sarocu2 hours ago
    IMO packaging is the best part of the Docker ecosystem and what really made container workloads take off
  • eluusive4 hours ago
    I worked at one of the early &quot;container companies&quot;; and wrote large parts of an in house mostly docker-compatible container engine. It was going to be part of a container orchestration platform pre-k8s and docker swarm.<p>This guy is totally correct. We also used Go for everything -- as it was hot stuff at the time -- and also very frustrating to deal with early version. Dependency management nightmares, bugs in the runtime, etc.<p>He also had to have a C shim that got loaded first, or shelled out to.<p>The hype around Google tools was pretty fascinating. I felt like that was the primary reason around using such an immature language at the time. There were better systems languages around for that kind of work.
  • kjuulh9 hours ago
    Docker and containers are amazing. They definitely have their caveats, whether that is security, bloat, you name it. But the fact that I can produce an artifact and have it run pretty much anywhere without much overhead is amazing.<p>For me firecracker has mostly taken over most of my hosting needs, as i can actually take a docker image and unpack it into a firecracker image, and still have a slim process (vm), with great performance, though with a bit extra bloat, but now also have a secure workload that I&#x27;ve got better control over.<p>Docker and docker compose however, is still the core of my development workflow, and has been for many years, in my eyes, docker compose is the best we&#x27;ve got for simple composition of various services.
  • xg153 hours ago
    From the bits that I&#x27;ve looked into, the namespace, cgroup and filesystem tricks seemed relatively easy to understand - but there seems to be a whole lot of highly specific networking configuration going on (including lots of IPTables rules) that I couldn&#x27;t make sense of yet.<p>Is there any writeup about those, or why they are there? Is this just to separate the different &quot;networks&quot; in a compose setup, or is there more going on?
  • majke12 hours ago
    To solve the networking setup, typically some sort of &quot;slirp&quot; is needed. Slirp on one hand takes (fake or real) packets from <i>somewhere</i> and then on the other side pass it to a normal Linux process that does CONNECT &#x2F; BIND &#x2F; SEND &#x2F; RECV.<p>It turns out you can do all the packet processing magic (connection tracking, syn handling, etc) in userspace totally fine, and then indeed hand it over this to userspace syscalls.<p>Being upset with classic C-based slirp and rust smoltcp (not enough features) I&#x27;ve dug up Fuchsia userspace tcp&#x2F;ip stack - netstack - and wrapped it in slirp a-like envelope.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;cloudflare&#x2F;slirpnetstack" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cloudflare&#x2F;slirpnetstack</a><p>So this beast is basically that - on one hand you pass it packets (potentially from inside container) on the other hand it does connect&#x2F;bind&#x2F;etc to host OS.<p>This approach, in one form or another, is used by tailscale, podman and many other container runtimes.
  • nottorp6 hours ago
    &gt; There’s not really a linux feature that’s just “containers” either. Instead, containers are really 5 different linux kernel features in trenchcoat.<p>Well said. At some point i was toying with doing a http server that will containerize itself on top of the directory it&#x27;s serving and put it on the back burner because the list of features needed seemed never ending.
  • centuryfall3 hours ago
    Docker is great. I entered into the post-Docker era (mid 2010s) and it is amazing how much sense it makes to imagine Docker as like a single task “mini computer”. I appreciate the insights of this article a ton: I feel after getting used to Docker, we take it for granted, but it’s great to see how someone junior to it would react.
  • QGQBGdeZREunxLe18 hours ago
    A good talk on the tech behind containers.<p>Containers From Scratch • Liz Rice • GOTO 2018<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=8fi7uSYlOdc" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=8fi7uSYlOdc</a>
  • tomaskafka5 hours ago
    Thank you for writing this up! For years I’ve been thinking of Docker as “some VM magic”, and in fact, I could have asked and know more in 5 minutes :)
  • wandering-nomad12 hours ago
    I am a huge Docker fan! I would reiterate what several commenters have said already that it had a huge impact on my career. My question is relatively pedestrian compared to what others have asked already. I absolutely loved the &quot;adjective-scientist&#x2F;nerd&quot; container names Docker generates. In fact, that is one of my most favorite things about Docker. How did that come about and who chose those combinations?
    • shykes11 hours ago
      I&#x27;m glad you enjoyed that! We wanted a way to make container names reasonably unique and reasonably memorable by a human, so this was a fun way to do it. I picked the original combinations, then over time it became a ritual for contributors to propose fun new values.<p>There&#x27;s a fun little easter egg: the combination of &quot;Steve Wozniak&quot; and &quot;Boring&quot; is explicitly forbidden, because Steve Wozniak is not boring :) <a href="https:&#x2F;&#x2F;github.com&#x2F;moby&#x2F;moby&#x2F;pull&#x2F;4902" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;moby&#x2F;moby&#x2F;pull&#x2F;4902</a>
  • voxleone7 hours ago
    Thank you for Docker.<p>&gt;&gt;Containers aren’t real<p>To me a Docker container is less like a sealed box and more like a &#x27;beam&#x27; of processes running through a set of isolation boundaries.
    • mr_toad6 hours ago
      I look forward to the authors next post where they discover that processes aren’t real either, they’re just convenient abstractions provided by the operating system.
  • kazinator17 hours ago
    &gt; And if you know where to look, you can even find that process in &#x2F;proc.<p>This is very important for debugging! Not just <i>that</i> process, but the processes running in that Docker can be found in &#x2F;proc.<p>Why this is useful is that you can run <i>gdb</i> outside of that docker and point it to a process in the docker, including setting the file system root to the docker one, so that it gdb reads the correct objects from the correct paths, to get the right symbols and addresses.
  • fbn7911 hours ago
    I have recently discovered INCUS, very nice alternative to docker when a simple container is not sufficient <a href="https:&#x2F;&#x2F;linuxcontainers.org&#x2F;incus&#x2F;" rel="nofollow">https:&#x2F;&#x2F;linuxcontainers.org&#x2F;incus&#x2F;</a>
  • kellengreen2 hours ago
    Please don&#x27;t make scaling the font size with page width a standard thing.
  • RDIT5 hours ago
    Interesting read, I run Gitlab on Docker at home. Thanks for the breakdown of the Linux features behind it. I never knew what was underneath
  • apexalpha11 hours ago
    Interesting read! Thanks.<p>Though it would be better if it compared Dockers ways to say Podman, which does things a little different I think.<p>For others, like me:<p>Footgun:<p><i>A footgun is a programming or system design term for a feature, tool, or API that makes it very easy for a user or developer to shoot themselves in the foot—meaning it causes self-inflicted damage or severe errors while working exactly as intended.</i>
  • zoobab10 hours ago
    When Docker came out, I was a heavy user of OpenVZ.<p>My bash build scripts looked like Dockerfiles.<p>Most of the container code in Linux came from those russian guys.<p>Took me 6 months to find out the difference between stateless and stateful containers, after Jerome Petazzoni published a blog post opposing the usage of an SSH server inside containers.
  • amelius9 hours ago
    To know that container technology is weird you only have to type &quot;mount&quot; (without arguments) on a modern Linux system. A whole list of leaking abstractions right in your face.
  • asveikau14 hours ago
    If you&#x27;re old enough to remember some techniques that people used before docker (like chroot(2)-ing daemons for security), the &quot;containers aren&#x27;t real&quot; observations are not really new info. When containers came on the scene it felt like an outgrowth or evolution of that technique, which was extremely crude and simple.
  • vegan_muffin6 hours ago
    Yes, Docker is weird when we had Plan9 for 20 years already before Docker was created.
  • mcapodici15 hours ago
    Docker question. Who prefers docker for local dev vs. run the thing directly. I usually prefer run the thing for debugging and hot reloading. Sure: build the containers and test them in CI. Dependencies like PG sure run in containers as they change less often and you save the install.
    • globular-toast6 hours ago
      Run the thing directly. Doing everything with Docker is what leads people to build bloated images with dev dependencies in them like test runners, dev servers etc. Too many people think containers are some magical thing but you can usually get exactly the same isolation using more specific dev tools. For example, in Python we&#x27;ve had virtualenvs forever and now tools like uv make it easier than ever to do the right thing. A docker image is just an artifact that you build for deployment to container-based platforms like Kubernetes.
    • jlhawn12 hours ago
      some people do all of their software development in a container. It really only works well if you are comfortable using TUIs instead of desktop apps though.
  • razighter77715 hours ago
    This only scratches the tip of the iceberg. People&#x27;s minds are blown when they realize Linux has no concept of a container.<p>It&#x27;s not a vm: It&#x27;s all namespaces, baby! Unshare one or more of your mnt, pid, net, ipc, uts, user, cgroup, or time namespaces and you have a &quot;container&quot;.
  • adrianlee_dev16 hours ago
    This is a better way to understand it: we can think of a container as an isolated process. When deploying containers, having a clear understanding of the boundaries between containers and the host machine in terms of permissions, resources, and data is extremely helpful for troubleshooting issues.
  • thayne16 hours ago
    Today, I would definitely choose rust over go. And I lament that so much container software uses go rather than rust. But back when docker started rust was a lot less mature and probably wouldn&#x27;t have been a good choice.
    • vbezhenar16 hours ago
      C was and is a good choice for that kind of software. I don&#x27;t understand the prevalence of Go in these tools.
      • crote15 hours ago
        Easy: far few footguns.<p>Performance is basically irrelevant because you&#x27;re not really interacting with the running application. You&#x27;re running as root, so security-critical. You&#x27;re talking to the internet for things like fetching images. You need rather complicated business logic to deal with all the possible options, protocols, and file formats.<p>Sure, you <i>could</i> do it in C, but dealing with dependencies is a major PITA and you&#x27;re permanently one <i>tiny</i> mistake away from getting pwned, while not needing any of C&#x27;s strengths. Go is safe, easy to write, and ships as a single batteries-included binary: what&#x27;s not to like?
        • vbezhenar14 hours ago
          What&#x27;s not to like? For example the fact that Go&#x27;s threads and OS threads are two different things. For example the fact that I can&#x27;t just use fork in Go. And many other things.<p>Go is good for writing web servers. For system software? Not so much. 90% of Unix is written with C. It&#x27;s not that bad.
    • WindyTree15 hours ago
      Go has grown too, since 1.25 it knows it’s in a container, uses all cores on CPU for go routines without hiccup.
      • thayne15 hours ago
        That isn&#x27;t really relevant for the tool starting the container. The biggest problem with go here is that it can&#x27;t natively perform the operations necessary to set up a container, due to the nature of the runtime, so it has to resort to complicated workarounds like a shim in c, and starting spawning from &#x2F;proc&#x2F;self&#x2F;exe instead of forking&#x2F;cloning.
    • Copenjin13 hours ago
      CTRL+F &quot;rust&quot;
  • alikatyc15 hours ago
    I can&#x27;t use Docker locally only because lack of enough space on my SSD.
    • andreygrehov14 hours ago
      That&#x27;s the case for Range - <a href="https:&#x2F;&#x2F;getrange.sh&#x2F;" rel="nofollow">https:&#x2F;&#x2F;getrange.sh&#x2F;</a> - runs any OCI image without pulling it. HTTP range requests FTW! :)
      • bmacho10 hours ago
        Off: apparently both Firefox and Chromium gives F1-F8 to websites to use if they ask nicely.
  • aldousd66614 hours ago
    Oh man, what a fun thing to do! I may have to replace what used to be my fascination with programming languages and compilers with virtualization or containerization now.
  • chasd005 hours ago
    dokku is built on docker and dokku is the cat&#x27;s meow. thank you :)
  • schmichael16 hours ago
    &gt; Go is kind of a terrible language for a container runtime<p>I love Go and use it for everything I can but will absolutely concede this point. It&#x27;s clearly <i>possible</i> to write the most successful container runtimes on earth in Go, but you absolutely have to fight the language&#x2F;runtime sometimes. Since containers are based on processes, handing off a container spec to a minimal rust runtime seems like what we should all be doing by now. crun has just proven good enough that AFAIK no one has RIIR.
    • alimbada9 hours ago
      &gt; crun has just proven good enough that AFAIK no one has RIIR.<p>You&#x27;ll be glad to know of youki then: <a href="https:&#x2F;&#x2F;github.com&#x2F;youki-dev&#x2F;youki" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;youki-dev&#x2F;youki</a>
  • q2dg11 hours ago
    Just use Podman
  • miladyincontrol17 hours ago
    For as &quot;terrible of a language&quot; Go is alleged to be for a container runtime, its not like crun or youki are exactly faster in many meaningful ways unless you count churning containers running true and exiting.<p>And implying the system kernel still has to run the container kinda ignores kata containers and gvisor runtimes.
    • 0x45716 hours ago
      It&#x27;s about using go to develop container runtime being terrible and not that &quot;if it was C it would be faster&quot;. OS runs the container, docker just does the setup and some managmenent.
    • gertop15 hours ago
      For me it&#x27;s not about the cpu time, but the memory. If you spin up hundreds of containers the docker overhead becomes very real.
  • steezeburger14 hours ago
    &gt; Next up: Databases are weird<p>&gt; Did you know that databases are just a file?<p>oOoOoOoOo<p>Mostly joking. It&#x27;s cool to see tech demystified, but I feel like a lot of things we use and take for granted are like this.
  • VCFundedGenYer16 hours ago
    Docker does not need root.<p>Side note almost nothing about Docker is weird. This article chooses rather boring design decisions and picks on them.
  • dilyevsky11 hours ago
    &gt; Unlike metal servers, VMs are just operating systems being gaslit by a hypervisor. Your actual CPU is still executing those instructions! And if you know where to look, yyou can even read the other VMs’ memory in L1D
  • cfarre10 hours ago
    Agree!
  • izecube10 hours ago
    interesting read as a relatively less experienced developer.
  • Pxtl15 hours ago
    Honestly it took me so long to pick up containerisation because of how it&#x27;s marketed. &quot;Orchestrate a zillion fake computers, ultralight VMs, livestock not pets&quot; big whoop.<p>&quot;It&#x27;s an idempotent language for OS level dependencies so you can be sure <i>exactly</i> what is running on your server&quot;<p>Gimme gimme gimme!
  • 0xbadcafebee17 hours ago
    Docker hasn&#x27;t required root for 7 years, I wish people would stop repeating that. It uses a root daemon by default because it makes things easier. Also, Containers are only as fake as a &quot;Desktop&quot; in an OS, which isn&#x27;t real either. It&#x27;s a user, network &amp; process namespace with a control bus and a bunch of other weird things. A Desktop is a Container with a GUI.<p>Other weird facts about OSes: a filesystem is a database, the Linux kernel is a monolithic program, &quot;hidden&quot; dot-files were a Unix bug that got carried forward, deleting a file doesn&#x27;t remove the file from your machine, virtual memory is a lie, your computer can&#x27;t run multiple programs at once (it&#x27;s just running one at a time real fast), in 12 years most systems will crash due to one number getting too big, you technically never need to reboot because you can launch a different version of Linux while already running Linux, you can freeze a program to a file and then later resume running that same program in the same state (but nobody uses it), files aren&#x27;t actually stored in directories, there&#x27;s a maximum number of files (and size of file) on most filesystems (which you can use to lock up a machine, despite file quotas existing and nobody using them), you can lock up most systems by forking too many times &#x2F; using too much RAM &#x2F; accessing disk too much, there&#x27;s a default number of open files and&#x2F;or TCP ports which is artificially low and you can use to again lock up a machine, pipes are just two file descriptors connected to one memory buffer, an IP address is just one long number split up into bytes, etc.
    • fulafel15 hours ago
      The rootless Docker experience used to be pretty bad and it was less friction to use something that was rootless by default (like Podman). Has this changed?
      • hanumseous11 hours ago
        it changed and its better now. rootless dockerd wants newuidmap&#x2F;newgidmap + subuid range before it start, and cgroups only work with cgroup v2 + systemd. also, on a host that already has those, its fine on one without systemd, and podman is still less friction, mostly because there is no daemon to babysit
      • justrunme9 hours ago
        [flagged]
    • vbezhenar16 hours ago
      &gt; your computer can&#x27;t run multiple programs at once (it&#x27;s just running one at a time real fast)<p>Of course it can.
      • rswail6 hours ago
        This list is from back in the day pre-multi-core, multi-CPU computers
      • crote15 hours ago
        Give them a break, machines with multiple CPU cores have only been around for 40ish years!
  • forrestthewoods14 hours ago
    One of my deeply unpopular opinions is that Docker only exists because Linux as a bad operating system that is incapable of deploying Docker. I have not once worked on a project where “we’ll solve this with Docker!” didn’t result in never ending Docker fixes and workarounds and hacks.<p>This is not a slight on Docker itself. It’s a slight on the conditions that induced Docker to exist.<p>One of the great selling points of one of my projects is “this is easy to run without needing Docker”.
    • hard_times8 hours ago
      It&#x27;s just an &quot;almost&quot; zero-cost abstraction layer for running complex service stacks and workloads on Linux. And damn, it&#x27;s just so convenient and neat.
  • znpy10 hours ago
    &gt; docker requires root!<p>Podman has not required root in years, just saying.
  • fixkitai43 minutes ago
    [flagged]
  • arbor-group5 hours ago
    [flagged]
  • ghostlaunchapi8 hours ago
    [flagged]
  • evann-dev7 hours ago
    [flagged]
  • ravivarmat11 hours ago
    [flagged]
  • Krea8ly5 hours ago
    [dead]
  • assimpleaspossi17 hours ago
    &gt;&gt;Images are just folders that Docker puts somewhere and then calls chroot (or pivot_root) to make that folder your container process’s new root directory.<p>And folders are graphical representations of directories--sometimes, not always--and not directories themselves. When will the newbies get this?
    • altcognito17 hours ago
      The high level abstraction is more important than the low level implementation unless the low level implementation is leaking through, or there is a significant advantage conveyed by understanding the low level implementation.<p>I know a lot about how http works, and it comes in handy, but I can understand how juniors get away with not knowing it as fully as I do.
    • sophacles17 hours ago
      Directory is a bad metaphor too.