4 ms·
> Docker enables you to package up your application along with all of the application’s dependencies into a nice self-contained image. You can then use use that
by _query 11y ago
> Docker enables you to package up your application along with all of the application’s dependencies into a nice self-contained image. You can then use use that image to run your application in containers.
Actually docker was created to enable easy scaling of web applications. If you want to package your application up take a look at some modern package managers. By using a modern package manager like nix you can work around the issues of containers while still keeping the "it just works" advantage of containers.
This does not mean that containers are bad, it's just that using a good package manager is usually a simpler solution.
Take a look at my blog post if you want to read more on this: http://www.mpscholten.de/docker/2016/01/27/you-are-most-likely-misusing-docker.html http://www.mpscholten.de/docker/2016/01/27/you-are-most-like...
- pea 11y agoYes, layering is somewhat of a hack to get around the fact that most OS package managers are mutable. IMO nix / guix have a much better approach here.
- foldr 11y agoI don't know if things have changed in the past few months, but the last time I tried nix it's used too much memory to make it practical to run it within a VM on my laptop.
- bboreham 11y ago> docker was created to enable easy scaling of web applications Citation? From my perspective, most of the features you'd need to do that appeared around 2 years into Docker's life.
- _query 11y agoInitial docker was part of dotCloud, a platform-as-a-service company[0]. From the perspective of a paas-company container technology allows for easy scaling. From the perspective of a docker user you're right that many of these tools were not available until recently. [0]: https://en.wikipedia.org/wiki/Docker_(software)#History https://en.wikipedia.org/wiki/Docker_(software)#History
- mstade 11y agoI mostly agree with what you're saying, but what caught my eye was: > About the author > Hey! I’m Marc, an eighteen years old software engineer located in Germany. You're obviously quite knowledgeable and well spoken for such a young age, and presumably English isn't your first language either. I just wanted to say keep up the good work, you have a bright future ahead of you – kudos!
- wcummings 11y agoSurprised he advertises his age, I started working around that age and pretty deliberately avoided age as a topic of discussion. Age is something best left unmentioned in a professional context.
- honua 11y agoYeah usually gets messy. E.g. the Babel author's experience
- petetnt 11y agoHappen to have a link at hand where I could read up on this? Tried searching for it but drew blank.
- karmajunkie 11y agoIts the kind of thing most people learn after they wish they'd learned it earlier :)
- matzipan 11y agoI believe Ubuntu click packages have been developed exactly for this purpose. That isn't to say alternatives aren't good, but maybe you can draw inspiration.
- fapjacks 11y agoNah. I don't like articles with phrases like "you are doing it wrong" when it comes to Docker, because Docker affords you choice. It is up to you to make the choices, and there are some "best practices" around using Docker, but there is no "right way" to use this technology. Use what is "right" for your environment and avoid platitudes like "you are doing it wrong". Anybody that wants a taste of what I'm talking about should stop by #docker on Freenode and see how people are using it.
- treeder 11y agoI"m pretty sure that's not why Docker was created. And Nix is definitely not a simpler solution for packaging/dependency management. It's a good idea, but with all the advantages of Docker (full isolation, flexibility of using any OS and any package manager, easy distribution), why bother with Nix?