News for hackers. Stuff that matters.
Re:Getting to Docker 1.0 by uses on Thursday August 08, 2013 @03:23PM (#6181156)
I'd like to see a "docker for web developers" post / guide.

I want to know how to write a dockerfile (?) that I can run a command against, and have a dev environment materialize. Something I can track in source control along with my "main" source. Something to replace the difficult-to-recreate and outside-of-source-control LAMP and Flask environments I have now.

And I'd like to know how my sites' source code or untracked files (e.g. .sqlite file, mongo dump files) fall into that, while still being accessible to the docker container.

I imagine this would cover a huge percentage of people interested in Docker.

Re:Getting to Docker 1.0 by frio on Thursday August 08, 2013 @04:17PM (#6181582)
Here's (https://github.com/frio/cloud9-dockerfile) something vaguely along those lines -- a basic popup IDE using Cloud9. It's not a complete solution (and probably never will be) but it made me happy :).

You can run it with:

    git clone https://github.com/frio/cloud9-dockerfile
    cd cloud9-dockerfile
    docker build -t "yourname/cloud9" ./
    docker run yourname/cloud9 -e [email protected]:your/project
... and then opening your-ip:3131 :).
Re:Getting to Docker 1.0 by jaytaylor on Thursday August 08, 2013 @10:50PM (#6183450)
Perhaps ShipBuilder is right up your alley.

ShipBuilder is an open-source Heroku-esque PaaS which uses Go, Git, LXC, and HAProxy, with Docker support coming soon!

The Shipbuilder codebase is super easy to understand, and aims to make it fast and easy to deploy arbitrary web-applications.

Get total control over all aspects of your staging and production environments.

More info:

http://shipbuilder.io/

https://github.com/sendhub/shipbuilder

Re:Getting to Docker 1.0 by consciousness on Thursday August 08, 2013 @10:57PM (#6183474)
I tried out SB today and so far I am impressed...it ran my Django app with zero issues. Definitely planning on pushing my company to start using this for their deployments instead of Heroku.
Re:Getting to Docker 1.0 by the_fc on Thursday August 08, 2013 @11:01PM (#6183487)
Has anyone tried this other Go-based Paas? http://globocom.github.io/tsuru/
Re:Getting to Docker 1.0 by crashoverdrive on Thursday August 08, 2013 @11:04PM (#6183502)
I looked at it but it seems overly complicated, I got ShipBuilder up and running in a flash
Re:Getting to Docker 1.0 by tgoldberg on Thursday August 08, 2013 @11:18PM (#6183552)
We just discovered ShipBuilder yesterday, yet already I have a very good feeling about it. We're planning on trying it out on a disposable AWS instance this weekend.
Re:Getting to Docker 1.0 by bjt on Thursday August 08, 2013 @10:37PM (#6183382)
Two thoughts:

- Docker is entirely dependent on LXC at the moment, so if you're developing in anything other than Linux, it's not a good solution for creating a dev environment. They're promising to make LXC just a plugin at some point and support BSD jails, OpenVZ, and other containers, but even then I'm not sure there will be an answer for OSX users.

- You can do just what you describe above with a Vagrantfile. It works cross platform already.

Re:Getting to Docker 1.0 by nickstinemates on Thursday August 08, 2013 @10:59PM (#6183482)
OSX supports `chroot` which could be a target on OSX.
Re:Getting to Docker 1.0 by nickstinemates on Thursday August 08, 2013 @06:03PM (#6182272)
tryrethink.info and my blog are both flask apps. The one thing I haven't written about is databases/persistent storage in containers (as the tryrethink sites are ephemeral)

Would this be helpful?

Re:Getting to Docker 1.0 by lsllc on Friday August 09, 2013 @11:33AM (#6186243)
Agreed, most of the tutorials I've seen so far have been along the lines of frio's answer -- ie you pull someone else's pre-build docker image (or docker file) and use that.
Re:Getting to Docker 1.0 by nickstinemates on Friday August 09, 2013 @12:08PM (#6186468)
I feel like I've already linked to my blog too much, but please take a look at http://nick.stinemat.es . I go through setting up Docker, to building my apps with Docker, to running a huge site on Docker.

If you're looking for more content, I'll be happy to provide it.

Re:Getting to Docker 1.0 by xnxn on Friday August 09, 2013 @12:41PM (#6186654)
Don't feel bad about linking to your blog -- even with the few posts it has, it was an invaluable resource in helping me get started with Docker.

Please keep writing!

Re:Getting to Docker 1.0 by nickstinemates on Thursday August 08, 2013 @02:00PM (#6180647)
Stating a roadmap is never easy, but hugely important for keeping the Docker team accountable. I believe that getting to a 1.0 release with the same fervor from the community will be a great indicator of future viability and success. That sets a pretty high bar.
Re:Getting to Docker 1.0 by gabrtv on Thursday August 08, 2013 @02:12PM (#6180732)
No question it's a high bar. Then again, I would have never predicted the rate at which Docker has matured already. Color me optimistic.
Re:Getting to Docker 1.0 by shykes on Thursday August 08, 2013 @04:53PM (#6181826)
We are pretty much forced to set this high bar because of the rate at which organizations large and small are adopting Docker. We will do everything we can to live up to the expectations!
Re:Getting to Docker 1.0 by sciurus on Thursday August 08, 2013 @02:00PM (#6180650)
"August 7: Introduce this new architectural approach to the community, and provide a developer preview"

Where can we find this?

Re:Getting to Docker 1.0 by golubbe on Thursday August 08, 2013 @02:17PM (#6180761)
Sorry--typo on my part (since corrected). We introduced the approach today, and will make the developer preview available on August 15.
Re:Getting to Docker 1.0 by tmzt on Thursday August 08, 2013 @07:33PM (#6182711)
With a stable API it would be nice to have an API client for Windows for developers building software on that platform but deploying to Linux.

It would be great to be able to do a docker import from a checked out codebase in Windows.

Re:Getting to Docker 1.0 by nickstinemates on Thursday August 08, 2013 @07:56PM (#6182807)
Have you seen docker-py[1]? Bindings for other languages also exist, but the main theme is that the docker host can be controlled (if configured that way) by external machines.

1: http://www.github.com/dotcloud/docker-py

Re:Getting to Docker 1.0 by shykes on Thursday August 08, 2013 @07:55PM (#6182805)
Yes. The core engine will build and run on all platforms supported by Go, including OSX and Windows.
Re:Getting to Docker 1.0 by golubbe on Thursday August 08, 2013 @01:26PM (#6180400)
Important news for Docker developers. Please let us know what you think.
Re:Getting to Docker 1.0 by MatthewPhillips on Thursday August 08, 2013 @02:20PM (#6180774)
It's unfortunate that it requires a 3.8 kernel, as getting those to work on most machines has been in my experience rather difficult. I had to downgrade back to 3.2 on a Ubuntu server because it wouldn't boot with 3.8. I was able to get it to work on a DigitalOcean fresh VM, but unless I want to migrate everything to a fresh VM, which I don't, I don't see myself using it for a while.
Re:Getting to Docker 1.0 by golubbe on Thursday August 08, 2013 @02:26PM (#6180811)
Broader compatibility (including reducing kernel dependency) is a major part of this push. There are a number of workarounds today (e.g. patching the kernel, deploying as VM) which are discussed on http://www.docker.io/gettingstarted/ But, obviously, such workarounds aren't practical in every environment.
Re:Getting to Docker 1.0 by nickstinemates on Thursday August 08, 2013 @02:36PM (#6180871)
Just an FYI - tryrethink.info and my blog (nick.stinemat.es) are both running on 3.2.0-48. While it is not the recommended configuration, I haven't had any kernel related issues.
Re:Getting to Docker 1.0 by julien421 on Thursday August 08, 2013 @02:48PM (#6180951)
FYI - memcachedasaservice.com:

  ubuntu:~$ uname -a
  Linux ip-10-85-147-7 3.2.0-36-virtual #57-Ubuntu SMP Tue Jan 8 22:04:49 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
  ubuntu:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID:	Ubuntu
  Description:	Ubuntu 12.04.1 LTS
  Release:	12.04
  Codename:	precise
Pretty stable so far (200 docker containers running on the box)
Re:Getting to Docker 1.0 by yuvadam on Thursday August 08, 2013 @02:31PM (#6180832)
Sounds like your problem is not with the 3.8+ kernel but with your choice of distributions that do not support it properly.
Re:Getting to Docker 1.0 by mbreese on Thursday August 08, 2013 @06:36PM (#6182459)
Given that Docker currently requires AUFS, Ubuntu is the distro of choice, so it's a problem.
Re:Getting to Docker 1.0 by e12e on Friday August 09, 2013 @12:32AM (#6183767)
Aufs works fine on Debian as well?
Re:Getting to Docker 1.0 by freeman478 on Thursday August 08, 2013 @02:47PM (#6180941)
Great plan !

Anybody knows if making docker run natively on Windows is possible ? (is there any sort of LXC like feature in Windows ?)

Re:Getting to Docker 1.0 by mbreese on Thursday August 08, 2013 @06:38PM (#6182467)
If this was going to be possible with Windows, it would have to be done by Redmond. And given that they'd be out of a Windows license by allowing containers w/in Windows (as opposed to VMs), I doubt that will happen.

Unless you're talking about running this as a Linux VM on a Windows host, in which case, sure - why not?

Re:Getting to Docker 1.0 by wmf on Thursday August 08, 2013 @03:31PM (#6181224)
Maybe somebody can bring CoLinux up to 3.8. http://www.colinux.org/?section=status
Re:Getting to Docker 1.0 by barake on Thursday August 08, 2013 @03:03PM (#6181016)
Well, you can run a Linux VM. Windows doesn't support anything like BSD jails or LXC right now.
Re:Getting to Docker 1.0 by airtonix on Thursday August 08, 2013 @06:35PM (#6182451)
why? the less windows severs out there, the better.
Re:Getting to Docker 1.0 by lsllc on Friday August 09, 2013 @11:31AM (#6186234)
I would love to see an ARM port of Docker (LXC supports ARM).
Re:Getting to Docker 1.0 by golubbe on Friday August 09, 2013 @11:56AM (#6186383)
We definitely want to see this too, and it is something being investigated for post- 0.8. In the meantime, you may want to read http://kencochrane.net/blog/2013/05/running-docker-on-a-rasp...
Re:Getting to Docker 1.0 by knodi on Friday August 09, 2013 @01:15AM (#6183867)
little off topic. can someone of the Docker team comment on what its been like to work with GoLang on a big project like Docker?
Re:Getting to Docker 1.0 by nickstinemates on Friday August 09, 2013 @01:32AM (#6183906)
You should start contributing[1] and let us know :). More seriously, it's a great topic for the mailing list and I encourage you to post it.

1: http://github.com/dotcloud/docker