2016年1月21日 星期四

啟動Pi的HypriotOS Docker



HypriotOS: root@black-pearl in ~
$ docker run -d -p 80:80 hypriot/rpi-busybox-httpd
Unable to find image 'hypriot/rpi-busybox-httpd:latest' locally
latest: Pulling from hypriot/rpi-busybox-httpd
af1721be47cc: Pull complete
6ace3cef50ed: Pull complete
27616286225e: Pull complete
c7278d0bf2e2: Pull complete
Digest: sha256:c00342f952d97628bf5dda457d3b409c37df687c859df82b9424f61264f54cd1
Status: Downloaded newer image for hypriot/rpi-busybox-httpd:latest
82dbcd2dde31381c6d7d50d77acad47ce9b13ab742697247474bc8dc6c63777b
HypriotOS: root@black-pearl in ~


檢查Container是否執行中
$ docker ps
CONTAINER ID        IMAGE                       COMMAND                  CREATED             STATUS                               PORTS                NAMES
82dbcd2dde31        hypriot/rpi-busybox-httpd   "/bin/busybox httpd -"   3 minutes ago       Up 3 minutes                         0.0.0.0:80->80/tcp   suspicious_swanson
HypriotOS: root@black-pearl in ~

使用連覽器,輸入Pi的IP,即可看到Docker運作正常




































HypriotOS: root@black-pearl in
~
$ docker pull hypriot/rpi-node
Using default tag: latest
latest: Pulling from hypriot/rpi-node
ec8335713f0c: Downloading [==============>                                    ] 9.447 MB/32.96 MB
4c3d8ef12d9b: Download complete
d9fa11102e78: Download complete
7fbbbb041e3b: Download complete
e612d93ea879: Download complete
d15d41e77226: Download complete
b32d2fa0b89d: Download complete
7ce868a4c3e4: Download complete
7dc91ec075ed: Downloading [==>                                                ] 5.388 MB/114.2 MB
1ef398dbdeea: Download complete
993e312b40c7: Download complete
3a5c40738b4e: Download complete
6fdb7b5d4b58: Downloading [=====================>                             ] 4.806 MB/11.23 MB
83e03457af7c: Download complete


沒有留言:

張貼留言