2016年1月22日 星期五

Hypriot Docker 安裝


顯示本機執行中的containers

$ docker ps
CONTAINER ID        IMAGE                       COMMAND                  CREATED             STATUS              PORTS                NAMES
82dbcd2dde31        hypriot/rpi-busybox-httpd   "/bin/busybox httpd -"   43 minutes ago      Up 43 minutes       0.0.0.0:80->80/tcp   suspicious_swanson

hypriot/rpi-busybox-httpd是一個相容於Pi,極小的Web Server   


顯示本機已有的image
$ docker images
REPOSITORY                  TAG                 IMAGE ID          CREATED        VIRTUAL SIZE
hypriot/rpi-node                 latest              83e03457af7c        8 days ago          439.4 MB
hypriot/rpi-swarm              latest              039c550f6208        11 weeks ago        10.92 MB
hypriot/rpi-busybox-httpd  latest              c7278d0bf2e2        7 months ago        2.156 MB


從倉庫中拉取python的image
https://hub.docker.com/u/hypriot/

$ docker pull hypriot/rpi-python
Using default tag: latest
latest: Pulling from hypriot/rpi-python
45e02ebea2b8: Pull complete
02d3cdf670b3: Pull complete
bd4c567603b9: Pull complete
faa3e8795c2e: Pull complete
11b7752e491d: Pull complete
be9e5169c10b: Pull complete
c77ff6dc5453: Download complete
c77ff6dc5453: Extracting [===>                                               ] 3.342 MB/53.43 MB
a49bf7a9282b: Download compl

$ docker images
REPOSITORY                  TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
hypriot/rpi-node             latest              83e03457af7c        8 days ago          439.4 MB
hypriot/rpi-python          latest              a49bf7a9282b        4 weeks ago         193.8 MB
hypriot/rpi-swarm           latest              039c550f6208        11 weeks ago        10.92 MB
hypriot/rpi-busybox-httpd   latest          c7278d0bf2e2        7 months ago        2.156 MB
HypriotOS: root@black-pearl in ~

可以見到python的image已經下載完畢.






顯示本機Docker系統訊息
$ docker info
Containers: 4
Images: 26
Server Version: 1.9.0
Storage Driver: overlay
 Backing Filesystem: extfs
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.1.12-hypriotos-v7+
Operating System: Raspbian GNU/Linux 8 (jessie)
CPUs: 4
Total Memory: 925.5 MiB
Name: black-pearl
ID: 736P:3MZH:Q4BH:XGBS:KZJF:WBKU:6DPG:V5TT:C6FT:APFV:2OYL:HHAY
Debug mode (server): true
 File Descriptors: 20
 Goroutines: 35
 System Time: 2016-01-22T08:56:59.095379835+01:00
 EventsListeners: 0
 Init SHA1: 5246a6ddd203054e34d43c740f96958125d00994
 Init Path: /usr/lib/docker/dockerinit
 Docker Root Dir: /var/lib/docker


沒有留言:

張貼留言