Trying out Rocket

Trying out Rocket

coreosがdockerはもう

It is not becoming the simple composable building block we had envisioned.

だって言って作ったコンテナランタイムのrocket触ってみる

インストール

coreosどっかに立ててやる。今回はdigitaloceanでやった

ホスト名がrocketになってる! → インスタンスたてたときホスト名rocketにしてただけでした。やだもー

wgetして入れるだけ

core@rocket ~ $ wget https://github.com/coreos/rocket/releases/download/v0.2.0/rocket-v0.2.0.tar.gz
core@rocket ~ $ tar xzvf rocket-v0.2.0.tar.gz

rktコマンド叩く

core@rocket ~ $ cd rocket-v0.2.0
core@rocket ~/rocket-v0.2.0 $ ./rkt help
NAME:
        rkt - rocket, the application container runner

USAGE:
        rkt [global options] <command> [command options] [arguments...]

VERSION:
        0.2.0

COMMANDS:
        enter   Enter the namespaces of an app within a rkt container
        fetch   Fetch image(s) and store them in the local cache
        gc      Garbage-collect rkt containers no longer in use
        help    Show a list of commands or help for one command
        run     Run image(s) in an application container in rocket
        status  Check the status of a rkt container
        version Print the version and exit

GLOBAL OPTIONS:
        --debug=false                   Print out more debug information to stderr
        --dir=/var/lib/rkt              rocket data directory
        --help=false                    Print usage information and exit
        --insecure-skip-verify=false    skip image verification

Run "rkt help <command>" for more details on a specific command.

よさ気

鍵の設置

coreos public keyの設置が必要っぽいので入れる

core@rocket ~ $ curl -O https://coreos.com/dist/pubkeys/aci-pubkeys.gpg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1640  100  1640    0     0   3117      0 --:--:-- --:--:-- --:--:--  3184

core@rocket ~ $ gpg --with-fingerprint aci-pubkeys.gpg
gpg: directory `/home/core/.gnupg' created
gpg: new configuration file `/home/core/.gnupg/gpg.conf' created
gpg: WARNING: options in `/home/core/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/home/core/.gnupg/secring.gpg' created
gpg: keyring `/home/core/.gnupg/pubring.gpg' created
pub  4096R/88182190 2015-01-23
      Key fingerprint = 8B86 DE38 890D DB72 9186  7B02 5210 BD88 8818 2190
uid                            CoreOS ACI Builder <release@coreos.com>

core@rocket ~/rocket-v0.2.0 $ sudo mkdir -p /etc/rkt/trustedkeys/prefix.d/coreos.com/etcd/

core@rocket ~ $ sudo mv aci-pubkeys.gpg /etc/rkt/trustedkeys/prefix.d/coreos.com/etcd/$(echo "8B86 DE38 890D DB72 9186  7B02 5210 BD88 8818 2190" | tr -d "[:space:]" | tr '[:upper:]' '[:lower:]')

core@rocket ~ $ ls -l /etc/rkt/trustedkeys/prefix.d/coreos.com/etcd/
total 4
-rw-r--r-- 1 core core 1640 Feb  5 12:36 8b86de38890ddb7291867b025210bd8888182190

App Container Image(ACI)を持ってくる

とおもったけどクリエが営業時間終了したのでここまで