News for hackers. Stuff that matters.
Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by shykes on Wednesday February 05, 2014 @01:33PM (#7185713)
Just to clarify on the OSX support: obviously we did not magically get Darwin to support linux containers. But we put together the easiest possible way to run Linux containers on a Mac without depending on another machine.

We do this by combining (1) docker in "client mode", which connects to (2) a super-lightweight linux VM using boot2docker.

The details are on http://docs.docker.io/en/latest/installation/mac/

Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by joeshaw on Wednesday February 05, 2014 @02:34PM (#7186205)
It is especially important to set DOCKER_HOST=tcp:/// before you run "boot2docker init" -- I forgot to do this initially and things failed mysteriously. I had to "boot2docker delete" and re-init to get things running.

Once I got that ironed out, everything is running very smoothly, and I don't have to ssh into the VM to do things. Nicely done.

My wish for 0.9 is a more streamlined installation process, possibly by simply incorporating these steps into a Homebrew formula.

Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by steeve on Wednesday February 05, 2014 @02:36PM (#7186219)
Note that this is documented in the boot2docker README ;)
Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by ashleyw on Wednesday February 05, 2014 @06:13PM (#7187516)
I've followed and refollowed those steps on OS X 10.9.1, but this is what happens:

  » docker version
  Client version: 0.8.0
  Go version (client): go1.2
  Git commit (client): cc3a8c8
  2014/02/05 23:10:55 unexpected EOF
Yet the docker server is definitely up:

  docker@boot2docker:~$ docker version
  Client version: 0.8.0
  Go version (client): go1.2
  Git commit (client): cc3a8c8
  Server version: 0.8.0
  Git commit (server): cc3a8c8
  Go version (server): go1.2
  Last stable version: 0.8.0
Tried both `export DOCKER_HOST=tcp://` and `export DOCKER_HOST=localhost` (as per boot2docker README), before re-init.
Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by tianon on Wednesday February 05, 2014 @07:52PM (#7187977)
Which version of boot2docker are you using? Also, which version of VirtualBox?

See also https://github.com/steeve/boot2docker/issues/48 which has some more information about this specific issue.

Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by shykes on Wednesday February 05, 2014 @07:53PM (#7187981)
Hey, thanks for the report! We're tracking that issue on https://github.com/dotcloud/docker/issues/3952 and are working with the boot2docker folks to get a fix out asap.
Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by ashleyw on Wednesday February 05, 2014 @08:37PM (#7188167)
Thanks! I solved the issue—it was due to CrashPlan using port 4243 (doh!)

https://github.com/steeve/boot2docker/issues/48

Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by andrewmunsell on Wednesday February 05, 2014 @10:31PM (#7188565)
I'm having the same issue, though running the commands provided in the GitHub issue at the bottom just results in the Crashplan service not starting... Docker still isn't functional.
Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by oellegaard on Wednesday February 05, 2014 @02:25PM (#7186122)
Too bad it depends on VirtualBox - had a lot of kernel panics when using it, so I decided to stick with VMware fusion.
Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by lambda on Wednesday February 05, 2014 @02:42PM (#7186286)
Really? When was the last time you tried it? I've been using VirtualBox for years and it's been pretty solid for me.
Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by darkarmani on Wednesday February 05, 2014 @03:18PM (#7186498)
Are you sure it isn't caused by the mid-2010 macbook video card bug? I had it re-exposed when i upgraded past 10.6 and that laptop now reboots 8 times a day. Mostly from mac mail or when the power drops and it shifts video cards.
Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by xentronium on Wednesday February 05, 2014 @04:59PM (#7187144)
FWIW, I had my 2010 mbp motherboard warranty-replaced and the crashes were gone.
Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by dunham on Wednesday February 05, 2014 @09:30PM (#7188367)
Mine started failing a few months outside the replacement period (3 years). I was due for a new work laptop, so I just replaced the machine.
Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by pekk on Wednesday February 05, 2014 @04:39PM (#7186999)
and I'm always told that macs are superior because they "just work," hmm
Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by 72deluxe on Thursday February 06, 2014 @04:21AM (#7189459)
That's marketing. They have the same number of problems as all other OSes and computers. I have found a higher percentage of Windows users to know where to look for system messages compared to the number of Mac users who know how to look for system messages. Perhaps it is because I have met more Windows users or perhaps they need to look these things up more...? But in any case, you meet more "hardcore" Windows users who know their way around compared to Mac users, perhaps because the end-user expectation of a Mac user is that it "just works" so doesn't need to poke around as much.
Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by 72deluxe on Friday February 07, 2014 @04:42AM (#7195514)
Not sure why the downvotes here! It isn't an anti-Apple rant, it's true! My day job involves writing OSX software on a Mac Pro and at home my only machine is a MacBook Pro, where I funnily enough write OSX software!
Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by darkarmani on Wednesday February 12, 2014 @10:43AM (#7224869)
> That's marketing. They have the same number of problems as all other OSes and computers.

Absolutely not! I have to support my parents using a computer and I bought them a mac mini 6-7 years ago, because they would always get their windows machine in an unusable state where i couldn't even remotely connect to help. Using a mac, they can do the things they need to do with almost no problems: store photos, backup, email, web browse, facetime, ichat. That would be impossibly for them on a windows machine.

Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by midas007 on Wednesday February 05, 2014 @05:20PM (#7187249)
I won't use Virtualbox either. Too many problems and I don't need yet another hypervisor when VMware Fusion works fine.
Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by ARothfusz on Wednesday February 05, 2014 @02:33PM (#7186199)
You should be able to install the same iso into a VMware image. You'll need to expose the networking ports, but the information should be in the boot2docker script.
Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by tianon on Wednesday February 05, 2014 @02:38PM (#7186243)
Or even bare metal. Personally, I extract the kernel and initrd and use it directly via PXE.
Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by lengads on Wednesday February 05, 2014 @03:10PM (#7186453)
Is that to say that you.. wait, what are you doing?
Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by tianon on Wednesday February 05, 2014 @09:10PM (#7188296)
I have my router serving up TFTP with the following pxelinux.cfg (and the appropriate vmlinuz64 and initrd.img extracted from the b2d ISO):

  LABEL boot2docker
          MENU LABEL boot2docker v0.5.2
          KERNEL boot2docker/v0.5.2/vmlinuz64
          APPEND initrd=boot2docker/v0.5.2/initrd.img loglevel=3 user=docker
Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by phaer on Wednesday February 05, 2014 @03:52PM (#7186716)
I guess s/he owns a second machine and boots boot2docker over the network (PXE = https://en.wikipedia.org/wiki/Preboot_Execution_Environment ) without installing anything on the second machine.
Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by tianon on Wednesday February 05, 2014 @10:15PM (#7188511)
Re:Docker 0.8: Quality, new builder features, btrfs, OSX sup... by steeve on Wednesday February 05, 2014 @02:39PM (#7186257)
Note that boot2docker will expose dockerd on the network if booted on VMware Fusion too. So if you boot in it, it works all the same.