News for hackers. Stuff that matters.
Re:A Decade of Docker Containers by phplovesong on Saturday March 07, 2026 @02:32PM (#47290706)
You can pretty much replace "docker build" with "go build".

But as long as people want to use scripting languages (like php, python etc) i guess docker is the neccessary evil.

Re:A Decade of Docker Containers by well_ackshually on Saturday March 07, 2026 @04:14PM (#47291554)
>You can pretty much replace "docker build" with "go build".

I'll tell that to my CI runner, how easy is it for Go to download the Android SDK and to run Gradle? Can I also `go sonarqube` and `go run-my-pullrequest-verifications` ? Or are you also going to tell me that I can replace that with a shitty set of github actions ?

I'll also tell Microsoft they should update the C# definition to mark it down as a scripting language. And to actually give up on the whole language, why would they do anything when they could tell every developer to write if err != nil instead

Just because you have an extremely narrow view of the field doesn't mean it's the only thing that matters.

Re:A Decade of Docker Containers by phplovesong on Sunday March 08, 2026 @08:20AM (#47296742)
My point was that 90% of "dockerized" stuff is just scripting langs
Re:A Decade of Docker Containers by garganzol on Saturday March 07, 2026 @03:25PM (#47291141)
Go is just one language, while Dockerfile gives you access to the whole universe with myriads of tools and options from early 1970s and up to the future. I don't know how you can compare or even "replace" Docker with Go; they belong to different categories.
Re:A Decade of Docker Containers by osigurdson on Saturday March 07, 2026 @02:40PM (#47290793)
In some situations, yes, others no. For instance if you want to control memory or cpu using a container makes sense (unless you want to use cgroups directly). Also if running Kubernetes a container is needed.
Re:A Decade of Docker Containers by matrss on Saturday March 07, 2026 @02:59PM (#47290958)
You have to differentiate container images, and "runtime" containers. You can have the former without the latter, and vice versa. They are entirely orthogonal things.

E.g. systemd exposes a lot of resource control as well as sandboxing options, to the point that I would argue that systemd services can be very similar to "traditional" runtime containers, without any image involved.

Re:A Decade of Docker Containers by osigurdson on Saturday March 07, 2026 @08:14PM (#47293301)
Well, I did mention "or use cgroups" above.
Re:A Decade of Docker Containers by matrss on Sunday March 08, 2026 @09:07AM (#47297012)
And what I've said is that there are more options. You don't have to use cgroups directly, there are other tools abstracting over them (e.g. systemd) that aren't also container runtimes.
Re:A Decade of Docker Containers by yunwal on Saturday March 07, 2026 @03:40PM (#47291251)
> You can pretty much replace "docker build" with "go build".

Interesting. How does go build my python app?

Re:A Decade of Docker Containers by phplovesong on Sunday March 08, 2026 @09:28AM (#47297169)
It obviously means you dont use a scripting language, instead use a real langauge with a compiler.
Re:A Decade of Docker Containers by LtWorf on Sunday March 08, 2026 @06:44PM (#47302410)
Calling "go" a "real language" is stretching the definition quite a bit.

Real languages don't let errors go silently unnoticed.

Re:A Decade of Docker Containers by phplovesong on Wednesday March 11, 2026 @11:09AM (#47336638)
For any serious app you dont ignore errors, and enforce them with the vast go linting tool.
Re:A Decade of Docker Containers by yunwal on Sunday March 08, 2026 @09:55PM (#47303949)
Ok yeah let me just port pytorch over that should be quick
Re:A Decade of Docker Containers by aobdev on Saturday March 07, 2026 @02:41PM (#47290797)
Wasn’t this the same argument for .jar files?
Re:A Decade of Docker Containers by speedgoose on Saturday March 07, 2026 @02:35PM (#47290740)
It doesn't sound like Golang is going to dominate and replace everything else, so Docker is there to stay.
Re:A Decade of Docker Containers by saghm on Sunday March 08, 2026 @03:28AM (#47295336)
At the risk of stating the obvious, there's quite a lot of languages besides just scripting languages and Go that get run in containers.