Bananian

Running Docker on Bananian

13 10641
noc  
Post Last Edited by noc at 2014-9-13 14:12

Hello world,

Has anybody tried (and succeeded) running Docker on Bananian? I found a howto for Raspbian here, but that certainly needs to be modified to work on Bananian.

Regard,
Jochen

Edit: Added link: http://stevef1uk.blogspot.de/201 ... n-raspberry-pi.html
Please post the link for the Raspbian howto and I will check.

LXC, btw works fine with release 14.09 coming next week.

noc  
Reply 2# Bananian

The "here" was clickable. But I added the link again in a more obvious way. Another interesting link might be this (haven't tried it yet): http://resin.io/blog/release-docker-0-7-2-for-arm/

Xsesa  
I second this, would be interesting to know if a docker image will be available for bananian

Reply 1# noc


    Hi,

I think Docker requires a newer Kernel (having >=3.9 in mind), so we might have to wait for it.

FileDescriptor

Xsesa  
Strange, looks like someone already ran docker.io on a rpi

http://blog.xebia.com/2014/08/25/docker-on-a-raspberry-pi/
Step 3: Installing docker
The actual install of docker is relative easy. There is a docker version compatible with the ARM processor (that is used within the Raspberry Pi). This docker is part of the package manager of Arch Linux and the used version is 1.0.0. At the time of writing this blog docker release version 1.1.2. The missing features are

    Enhanced security for the LXC driver.
    .dockerignore support.
    Pause containers during docker commit.
    Add --tail to docker logs.

You will install docker and start is as a service on system boot by the commands:
1
2
       
pacman -S docker
systemctl enable docker

mattrix  
Edited by mattrix at Thu Nov 13, 2014 21:40

Arch Linux has Docker built-in. I did the below and works great

Download latest Arch Linux for Banana Pi
http://www.lemaker.org/resources/9-96/archlinux_for_bananapi.html

Boot and login
  1. user: root
  2. pass: bananapi
Copy the Code
# Change root password #
  1. passwd
Copy the Code
# Enlarge Partion #
  1. fdisk /dev/mmcblk0
  2. d
  3. 2
  4. n
  5. p
  6. 2
  7. [ENTER FOR DEFAULT]
  8. [ENTER FOR DEFAULT]
  9. w
  10. reboot

  11. resize2fs /dev/mmcblk0p2
Copy the Code
# UPDATE #
  1. pacman -Syu
Copy the Code
# INSTALL DOCKER #
  1. pacman -S docker
Copy the Code
# ENABLE DOCKER SERVICE #
  1. systemctl enable docker.service
  2. reboot
Copy the Code
# CHECK #
  1. docker version
Copy the Code
# RUN AN ARM DEBIAN CONTAINER #
  1. docker run -i -t mazzolino/armhf-ubuntu:14.04 /bin/bash
Copy the Code
Tested working!

You need to use ARM based images for your containers.
https://registry.hub.docker.com/u/mazzolino/armhf-ubuntu/ is a good base Ubuntu container

mattrix  
Edited by mattrix at Fri Nov 14, 2014 01:28

I had a few problems with some of those armhf images, so I have created a Bananian base image.
  1. docker run -i -t matthuisman/bananian:14.09 /bin/bash
Copy the Code
134MB

Hi,

This does not seem to work: i installed the latest Arch image from lemaker for the BananaPI.
But I get the following error when trying to build an image with above mentioned Ubuntu images:

  1. n/bashlemaker polipo-container]# docker run -i -t matthuisman/bananian:14.09 /bi
  2. Unable to find image 'matthuisman/bananian:14.09' locally
  3. Pulling repository matthuisman/bananian
  4. 704d4a288099: Download complete
  5. Status: Downloaded newer image for matthuisman/bananian:14.09
  6. FATA[0171] Error response from daemon: Cannot start container 8b6e195186ef1454349a85eb116c335b571cbdbc60b60f3a4dbfc448b9183ad3: [8] System error: no such device
Copy the Code


It seems related to: http://forum.lemaker.org/forum.p ... mp;highlight=docker

So what are my best options to run Docker on my banana pi and run images/containers with it?

Any update?  Still getting "no such device" error using the latest arch image.  Struggling to build a kernel with the right flags.  A howto would be great.

You have to log in before you can reply Login | Sign Up

Points Rules