News for hackers. Stuff that matters.
Re:Why Always Docker? by willcodeforfoo on Sunday January 17, 2016 @04:09PM (#10921082)
It's a good question, especially in the age of small static binaries with no external depdencies anyway.

Even if the isolation isn't of much value, Docker is still useful as transport and storage. Getting back to the shipping container metaphor, it's easier to move things around if they are all the same. And Docker containers are a pretty good way to do that with code.

Re:Why Always Docker? by nzoschke on Sunday January 17, 2016 @05:23PM (#10921376)
Yeah the registry is a great example. I too am building everything into nice little Go binaries, and wonder why I'm using Docker to run these in production.

It's really nice to have the common interface and tools both on dev and prod. If I didn't wrap these binaries in Docker I'd be wrapping them in upstart scripts, systemd config, chef scripts or .deb packages.

All of these layers are a burden. Docker is simply more modern, easier, and has a great API, and tools for packaging, running and monitoring a program.

Why not Docker for everything?

Re:Why Always Docker? by sz4kerto on Sunday January 17, 2016 @04:49PM (#10921243)
I don't know if this is the age of small binaries. Maybe in some industries. The artifacts we're deploying are -- partly because of various constraint, partly because of the weight of legacy - are between 25-50 MB. Oh, and they are run inside of a Java app server, that's also 100-200 MB. Ah, and that runs on a Java VM. The integration tests require a running Firefox, Chrome, V8, JVM, databases, whatever.

(No, I can't replace these with a couple of command-line Unix tools just yet.)

Re:Why Always Docker? by lobster_johnson on Sunday January 17, 2016 @05:17PM (#10921354)
I suspect the parent is mostly referring to Go.
Re:Why Always Docker? by auvrw on Sunday January 17, 2016 @06:41PM (#10921641)
i do wonder what aspects of Go make it good for the container use-case. both Docker and the other container system mentioned at the top of the article are written in Go.
Re:Why Always Docker? by jacques_chester on Sunday January 17, 2016 @08:05PM (#10921944)
> i do wonder what aspects of Go make it good for the container use-case.

Same as JARs or C/C++ binaries. You can ship the compiled product to the target runtime and expect it to launch and run as-is.

Languages with an interpreted nature require containers to also ship an additional runtime, plus a dependencies mechanism.

Re:Why Always Docker? by techdragon on Sunday January 17, 2016 @08:44PM (#10922062)
Go is a step further than these though since it enables "static binaries" you can run go programs in docker with nothing else in their containers. Just one file, the Go binary.

Which is amazing and frustrating since it exposes the inability of other languages to operate in such a simple environment. Even languages like Rust, C and C++ aren't able to do this reliably all the time, with the results being highly dependent on libraries and platforms of choice.

Re:Why Always Docker? by auvrw on Monday January 18, 2016 @02:13AM (#10923030)
thanks for the &replies ;-) ... tbh, Go vs. Rust for the, "i wanna write a Docker-thing!" use case was pretty much the question i had in mind.

the Rust ppl are looking toward static linking [links]...

https://internals.rust-lang.org/t/static-binary-support-in-r... https://github.com/rust-lang/rust-buildbot/issues/24