Earlier quoted context omitted.
So I already use Linux almost exclusively for development, and VMs are not in my workflow at all. It seems bizarre to build a VM to build a container! Like too many levels of yak shaving.
All of my projects now include a Vagrantfile. It makes managing dependencies and creating repeatable environments simple. The work flow is: $ vagrant up $ vagrant ssh Editing and committing changes take place on the host. Running servers, tests, building Docker containers, etc, takes place on the guest. You can get a new device ready for hacking on a project in minutes. Just git clone, vagrant up, grab a quick coffee…
Show HN: Hosted Docker-as-a-Service on SSDs for $5
111–120 of 133 posts
Re: Show HN: Hosted Docker-as-a-Service on SSDs for $5
#112I like the idea. Really cool. I've been researching docker a lot lately, and did most of my recent development on Core OS. I do have a question that wasn't immediately obvious: Docker maintains that one should make a container out of every application so that instead of having to install apache + mysql + php in one Ubuntu environment, you'd create three docker containers (apache, mysql, memcache) and run them togethe…
It is common to include dependencies like MySQL and Apache in the container of your application. Usually people use supervisord with a configuration file to start all the different daemons needed.
Re: Show HN: Hosted Docker-as-a-Service on SSDs for $5
#113This is truly awesome, nice work! I configured and launched a machine with redis and node in less than 5 minutes. Very cool. How will you isolate instances from each other? My instance appears to have 24 GB of RAM and 12 cores, and it looks like I can use all of it in my instance.
Re: Show HN: Hosted Docker-as-a-Service on SSDs for $5
#114UPDATE: I'd also be interested to hear about Digital Ocean-style "shared" (but non-private) networking—basically, any network adaptor with a non-Internet routable IP address. ;)
Re: Show HN: Hosted Docker-as-a-Service on SSDs for $5
#115Earlier quoted context omitted.
> It seems bizarre to build a VM to build a container! Like too many levels of yak shaving. Perhaps, but you just said: > I have a 32 bit Linux desktop and a Mac and haven't gotten around to installing Docker. At work I have a 64 bit Linux desktop and it seemed to be extremely picky about the kernel version so I gave up. Precisely. Hence VMs, because Vagrant makes it trivial to spin up an instance configured however…
I can see where you're coming from, but my issue is that Docker itself is LESS portable than the applications it's containerizing! It's creating the very problem it's trying to solve. The task I care about isn't to build and deploy a Docker container. It's to build and deploy my app. I have a beef with build/deploy systems that have bootstrapping problems. For example I'm hearing from people using Chef that they have…
If you have, let's say, a django app, and you want to be able to run it all sorts of places, Docker is very much the wrong tool; it doesn't run at all most places, and it's finicky to get working. You're better off just getting that one app to run when and where you want. And if you run into any issues, virtualenv will solve it, no big deal.
If you have a bunch of apps you want to get running (or perhaps a bunch of interlocking pieces of a single stack, or the different elements of a SOA), then Docker suddenly starts to look very attractive. And then you might go to the trouble to get a single gold server image with docker installed and working (or an Ansible playbook, or a Chef cookbook, or a Digitalocean snapshot, or an EC2 AMI, or whatever), and you know you can just spin up a server and deploy any app you want to it. And once you start thinking about testing, CI, orchestration, automatic scaling, etc., it all becomes that much more attractive; you've got these generic docker servers, on the one hand, and these generic docker containers on the other, and you can mix and match them however you like. When you start having more than 1 server and 1 app, that's amazing. Very much worth the cost of entry of having to install docker everywhere...if you need that kind of thing.
You're focusing on portability between operating systems, but that's not the point of docker; as you say docker isn't portable at all (which should be a strong hint that isn't the problem it solves). But docker containers are portable between servers with docker on it, and with some architectures (or at a certain scale), you will suddenly realise just how useful that is.
If it helps, consider Heroku (and the other PaaS outfits like dotCloud, etc.). A lot of startups outsource big chunks of their infrastructure to Heroku, and Heroku uses a very docker-like architecture. If you were to shift that back in house, in many cases that same architecture makes sense (largely depending on just what you were outsourcing to Heroku...). ...and sometimes it doesn't. But if it does, docker is probably a core part of any attempt at implementing your own in-house PaaS. And if you need that kind of thing, you aren't going to stop because "well, it doesn't run on OSX"; nobody (well, nearly) is using OSX is production. :)
Re: Show HN: Hosted Docker-as-a-Service on SSDs for $5
#116Re: Show HN: Hosted Docker-as-a-Service on SSDs for $5
#117Also, forgive my ignorance, but what would it take to be able to "add containers" in the same way that you can add dynos on Heroku?
Re: Show HN: Hosted Docker-as-a-Service on SSDs for $5
#118Re: Show HN: Hosted Docker-as-a-Service on SSDs for $5
#119Just curious, how are people building Docker images these days? Doesn't it only run on 64-bit Linux? I have a 32 bit Linux desktop and a Mac and haven't gotten around to installing Docker. At work I have a 64 bit Linux desktop and it seemed to be extremely picky about the kernel version so I gave up. Are people running Linux VMs on their Macs to build containers? I like the idea of this service. But both the client s…
Yes. Emerging best practices seems to be to use Vagrant to create a great development environment, then use docker containers inside that for isolation. The two work together quite well. There's a comment from the Vagrant creator here about that: https://news.ycombinator.com/item?id=6291549 In short, yes, just run a VM.
Re: Show HN: Hosted Docker-as-a-Service on SSDs for $5
#120Hi everyone, Docker maintainer here. Here's my list of docker hosting services. Please correct me if I forgot one! I expect this list to get much, much longer in the next couple months. * http://baremetal.io * http://digitalocean.com (not docker-specific but they have a great docker image) * http://orchardup.com * http://rackspace.com (not docker-specific but they have a great docker image) * http://stackdock.com EDI…