Skip to content

kimswe/rpi-arch-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rpi-arch-docker 0.7.5

Updated version of docker installscript, and some stuff to get it all running.

Blogpost @ http://resin.io/blog/docker-on-raspberry-pi-in-4-simple-steps/

Original @ https://github.com/resin-io/docker-install-script

Something is weird, the installscript works sometimes and sometimes not. Seems pacman is 'Killed' by the kernel. Could be slow internet, low ram or something.

I did a reflash, manually downloaded the packages and ran pacman -U packagename.tar.xz for all packages, and finally, success!

###Download and install curl https://raw.github.com/kimswe/rpi-arch-docker/master/install.sh | sh Might work for you, who knows.

###After Docker Install, resize partition

fdisk "/dev/mmcblk0"
p 
d # delete
2 
n #new
e 
(return) # accept default partition no
(return) # accept default start
(return) # accept default end
n
l
(return) # accept default start
(return) # accept default end
p
w

sync; reboot 
...
resize2fs /dev/mmcblk0p5

###Run docker on startup ####Enable ip forwarding

sysctl -w net.ipv4.ip_forward=1

Or make it permanent via adding

net.ipv4.ip_forward=1 

to

/etc/sysctl.d/99-sysctl.conf

####Enable docker.service via https://wiki.archlinux.org/index.php/systemd

systemctl enable docker.service

####Docker API for UI packages etc Edit /etc/systemd/system/multi-user.target.wants/docker.service to listen to tcp and pipes. (Only if you want to use the api for UI:s etc)

[Unit]
Description=Docker Application Container Engine 
Documentation=http://docs.docker.io
After=network.target

[Service]
ExecStartPre=/bin/mount --make-rprivate /
ExecStart=/usr/bin/docker -d -H tcp://127.0.0.1:4243 -H unix:///var/run/docker.sock -api-enable-cors

[Install]
WantedBy=multi-user.target

###Services ####Base image docker run -t -i resin/rpi-raspbian /bin/bash ####Ghost https://github.com/resin-io/docker-nginx-ghost

####Google Coder docker run -d -p 8081:8081 resin/rpi-google-coder

###Pacman cheat sheet

pacman -Sy       # synchronize repository databases if neccessary
pacman -Syy      # force synchronization of repository databases

pacman -Ss xyz   # search repository database for packages for xyz
 
pacman -S xyz    # install package xyz
pacman -Sy xyz   # synchronize repo and install xyz
pacman -Syy xyz  # really synchronize repo and install xyz
 
pacman -R xyz    # remove package xyz but keep its dependencies installed
pacman -Rs xyz   # remove package xyz and all its dependencies (if they are not required by any other package)
pacman -Rsc xyz  # remove package xyz, all its dependencies and packages that depend on the target package
 
pacman -Ql xyz   # show all files installed by the package xyz
pacman -Qo /path # find the package which installed the file at /path**strong text**

About

Docker on Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages