[熱情]

Docker raspberry pi 본문

Server Tech/Docker

Docker raspberry pi

rootkaien 2017. 11. 9. 15:15

https://youtu.be/HsrwrBjkdrU     blog.hypriot.com 



1. Raspbian jessie lite install


2. updata OS


$ sudo apt-get update

$ sudo apt-get upgrade

$ sudo shutdown -new


3. install docker  arm architecture of the raspberry 


$  curl -sSL https://get.docket.com | sh


4. docker demons running


$ sodu docker info


$ sudo docker run hello-world 


$ sudo docker info


$ sudo docker run hello-world


; error~~~ T_T


https://hub.docker.com

- container4armhf/armhf-alpine

https://hub.docker.com/r/container4armhf/armhf-alpine/



$ mkdir build

$ cd build 

$ vi Dockerfile

FROM resin/rpi-raspbian:jessie

# install and upate


RUN apt-gert update && apt-get install -y  \

    oracle-java8-jdk

    && apt-get clean


CMD ["java"]


$ sudo docker build -t ulrix/rpi-java8  . 


$ sudo doker image


$ sudo docker run -it ulrix/rpi-java8 


$ sudo docker run -it ulrix/rpi-java8  -version 







Comments