Installation de Docker sur ArchLinux

Installation de Docker sur ArchLinux.

1) Installation de git :

[root@alarmpi ~]# pacman -S git

2) Téléchargement du script d’installation de docker :

[root@alarmpi ~]# git clone https://github.com/resin-io/docker-install-script.git
[root@alarmpi ~]# cd docker-install-script/

3) Lancement de l’installation :

[root@alarmpi docker-install-script]# sh ./install.sh

4) Redémarrage :

[root@alarmpi docker-install-script]# shutdown -r now

5) Lancer Docker en tâche de fond :

[root@alarmpi ~]# docker -d &
[1] 272
[root@alarmpi ~]# 2014/06/02 14:03:13 docker daemon: 0.11.1 fb99f99-dirty; execdriver: native; graphdriver:
[0d0585df] +job serveapi(unix:///var/run/docker.sock)
[0d0585df] +job initserver()
[0d0585df.initserver()] Creating server
2014/06/02 14:03:13 Listening for HTTP on unix (/var/run/docker.sock)
[0d0585df] +job init_networkdriver()
[0d0585df.init_networkdriver()] creating new bridge for docker0
[0d0585df.init_networkdriver()] getting iface addr
[0d0585df] -job init_networkdriver() = OK (0)
[root@alarmpi ~]# Loading containers: : done.
[0d0585df.initserver()] Creating pidfile
[0d0585df.initserver()] Setting up signal traps
[0d0585df] -job initserver() = OK (0)
[0d0585df] +job acceptconnections()
[0d0585df] -job ac

6) Activer le forwarding d’IPv4

[root@alarmpi ~]# sysctl -w net.ipv4.ip_forward=1
net.ipv4.ip_forward = 1

7) Téléchargement d’une image de base et démarrer un shell :

[root@alarmpi ~]# docker run -t -i resin/rpi-raspbian /bin/bash

8) Sortir du shell :

root@8f8c54e1046e:/# exit

9) Installation de Google Coder :

[root@alarmpi ~]# docker run -d -p 8081:8081 resin/rpi-google-coder

10) Test :
https://192.168.1.20:8081
11) Liens :
http://poscotso.wordpress.com/2014/03/19/raspberry-pi-docker-lighttpd/
http://resin.io/blog/docker-on-raspberry-pi-in-4-simple-steps/
http://googlecreativelab.github.io/coder/
http://blogs.infosupport.com/running-docker-0-9-on-a-raspberry-pi/

Leave a Reply

You must be logged in to post a comment.