やってみる

アウトプットすべく己を導くためのブログ。その試行錯誤すらたれ流す。

RaspbianのDockerでRaspbianのイメージ取得&コンテナ作成

 コマンド一発で。

前提

Raspbianのイメージ取得&コンテナ作成

$ sudo docker run -ti resin/rpi-raspbian:stretch /bin/bash
Unable to find image 'resin/rpi-raspbian:stretch' locally
stretch: Pulling from resin/rpi-raspbian
6c47d1fe7764: Pull complete 
3a8ed5eb77d0: Pull complete 
fb21509bb10f: Pull complete 
98f34e3c1659: Pull complete 
ebe721821c6a: Pull complete 
3a26a713267d: Pull complete 
4c3861a27001: Pull complete 
f82a8f220409: Pull complete 
2f211d0fadfb: Pull complete 
12fbcf09924a: Pull complete 
b68c7cd0beca: Pull complete 
Digest: sha256:74a1e4f26e68cd6572967c5a0cece93cb9f315e49a0f2b45fc110159a6739152
Status: Downloaded newer image for resin/rpi-raspbian:stretch
root@2501191ef1aa:/# 

コマンドを打ってみる

ls

root@2501191ef1aa:/# ls
bin   core  etc   lib    mnt  proc  run   srv  tmp  var
boot  dev   home  media  opt  root  sbin  sys  usr

uname -a

root@2501191ef1aa:/# uname -a
Linux 2501191ef1aa 4.14.69-v7+ #1141 SMP Mon Sep 10 15:26:29 BST 2018 armv7l GNU/Linux

参考