Live data from Hacker News

Docker on Raspberry Pi

resin.io

31–40 of 46 posts

Re: Docker on Raspberry Pi

#31

If anyone is on a Mac trying to write the Arch image to an SD card, follow the steps on this site to find your SD card: http://www.embeddedarm.com/support/faqs.php?item=10 The command for me was: sudo dd if=$RPIDIR/archlinux-hf-2013-07-22.img of=/dev/disk1 bs=4m It also took about 20 minutes to write.

Yeah, I'm working on updated instructions at the moment. You may get stuck at the step that's "Install a new kernel on the RPi." if your system is i386; Those instructions only work on x86_64, afaik.

I'm keeping a log of what I try to see if I can make things faster / better.

Re: Docker on Raspberry Pi

#32

If anyone is on a Mac trying to write the Arch image to an SD card, follow the steps on this site to find your SD card: http://www.embeddedarm.com/support/faqs.php?item=10 The command for me was: sudo dd if=$RPIDIR/archlinux-hf-2013-07-22.img of=/dev/disk1 bs=4m It also took about 20 minutes to write.

I've just tried to install crosstool-ng on Mac OS X 10.6.8 (i386), and building it just never works.

Re: Docker on Raspberry Pi

#33
post #24

Earlier quoted context omitted.

If anyone gets that done it will make us very happy! We run our servers on CoreOS, putting it on the devices as well would be awesome. AFAICT it's about getting etcd to run on the Pi, as well as any other small projects that make up CoreOS.

There is an ongoing project to bundle Docker with Tiny core linux, which is even more lightweight than coreos. Meanwhile there is also work to add clustering capabilities to docker.

Awesome stuff.. any pointers to where this work is getting done?

Re: Docker on Raspberry Pi

#34
post #9

I'm looking for "the CoreOS of Raspberry Pi." Just a barebones Linux distro that just runs Docker images. Anyone have any ideas?

I haven't seen anything yet, but I'm very interested in this area – I've got an application that uses a bunch of RasPi nodes, and running anything like Raspbian or even PiLFS feels too heavyweight for what I ultimately want (a single networked app that runs on startup).

Hi Matthew, I'm interested in how you're dealing with code deployment. Have an email address in profile if you want to talk.

Re: Docker on Raspberry Pi

#35
A couple of naive questions:

Isn't more expensive to run docker upon Linux and deploy your applications instead of installing the applications and it's dependencies directly on the Pi?

How is this going to work on underpowered machines such as the RPi?

Is it for applications that require a very small amount of memory? (say you can run 5 applications that consume 80 MB each?).

Maybe I erroneously tie-up Docker with web-development and web-based applications, but can you give an couple of example applications that could benefit from docker on the Pi?

thanks

Re: Docker on Raspberry Pi

#36
post #35

A couple of naive questions: Isn't more expensive to run docker upon Linux and deploy your applications instead of installing the applications and it's dependencies directly on the Pi? How is this going to work on underpowered machines such as the RPi? Is it for applications that require a very small amount of memory? (say you can run 5 applications that consume 80 MB each?). Maybe I erroneously tie-up Docker with we…

Docker, actually Linux containers uses cgroup, which only isolates and priorities the resource usages, the overhead is very very low, so it does not matter much where it is used.

The point of docker is allowing you to deploy your images, or more adequately put Dockerfiles on anywhere. So, when you have a Rpi cluster, you would worry less about deployment.

Re: Docker on Raspberry Pi

#37
post #35

A couple of naive questions: Isn't more expensive to run docker upon Linux and deploy your applications instead of installing the applications and it's dependencies directly on the Pi? How is this going to work on underpowered machines such as the RPi? Is it for applications that require a very small amount of memory? (say you can run 5 applications that consume 80 MB each?). Maybe I erroneously tie-up Docker with we…

Thanks for the excellent questions. I started writing a response but it became way too long, so I moved it to the blog:

http://resin.io/blog/why-port-docker-to-the-raspberry-pi/

Re: Docker on Raspberry Pi

#38
This is brilliant. This means writing software that interfaces with real world physical items is going to get much simpler, quicker and more efficient. Awesome work.

Re: Docker on Raspberry Pi

#39
post #19

I come from an Electrical Engineering/Low-level embedded background. I only just learned of Docker/Vagrant/et al., and although I can understand the utility in some contexts, I can't possibly understand the utility of running Docker on a Raspberry Pi (except as a toy exercise). What am I missing?

Very easy deployment. A Dockerfile that works on your desktop that refers to a container image can be very easily be sent to many devices and installed seamlessly.

Even if those two devices have radically different architectures?

Re: Docker on Raspberry Pi

#40
post #35

A couple of naive questions: Isn't more expensive to run docker upon Linux and deploy your applications instead of installing the applications and it's dependencies directly on the Pi? How is this going to work on underpowered machines such as the RPi? Is it for applications that require a very small amount of memory? (say you can run 5 applications that consume 80 MB each?). Maybe I erroneously tie-up Docker with we…

Thanks for the excellent questions. I started writing a response but it became way too long, so I moved it to the blog: http://resin.io/blog/why-port-docker-to-the-raspberry-pi/

Thank you alexandros for the prompt reply. I will read the blog post tonight at home.

ps. You're Greek?

Post reply on HN