- ssh でログイン、ユーザ名 ubuntu、パスワード ubuntu
$ ssh ubuntu@192.168.38.11
- Ubuntu Core の状態の確認
ubuntu@localhost:~$ snappy info
release: ubuntu-core/devel
frameworks:
apps:
- docker のインストール
ubuntu@localhost:~$ snappy search docker
Part Version Description
docker 1.3.3.001 The docker app deployment mechanism
ubuntu@localhost:~$ snappy install docker
docker 4 MB [===============================================================================================] OK
Part Tag Installed Available Fingerprint Active
docker edge 1.3.3.001 - 60b98945e5fc1d *
ubuntu@localhost:~$ snappy versions
Part Tag Installed Available Fingerprint Active
ubuntu-core edge 140 142 184ad1e863e947 *
docker edge 1.3.3.001 - 60b98945e5fc1d *
ubuntu@localhost:~$ snappy info
release: ubuntu-core/devel
frameworks: docker
apps:
- docker コマンドを使ってみる
ubuntu@localhost:~$ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
ubuntu@localhost:~$ docker info
Containers: 0
Images: 0
Storage Driver: devicemapper
Pool Name: docker-8:3-782058-pool
Pool Blocksize: 65.54 kB
Data file: /var/lib/apps/docker/1.3.3.001/devicemapper/devicemapper/data
Metadata file: /var/lib/apps/docker/1.3.3.001/devicemapper/devicemapper/metadata
Data Space Used: 305.7 MB
Data Space Total: 107.4 GB
Metadata Space Used: 729.1 kB
Metadata Space Total: 2.147 GB
Library Version: 1.02.82-git (2013-10-04)
Execution Driver: native-0.2
Kernel Version: 3.16.0-25-generic
Operating System: <unknown>
WARNING: No swap limit support
- update
ubuntu@localhost:~$ snappy update-versions
1 updated components are available with your current stability settings.
ubuntu@localhost:~$ snappy versions
Part Tag Installed Available Fingerprint Active
ubuntu-core edge 140 142 184ad1e863e947 *
docker edge 1.3.3.001 - 60b98945e5fc1d *
ubuntu@localhost:~$ snappy update ubuntu-core
ubuntu-core 62 MB [==========================================================================================] OK
Reboot to use the new ubuntu-core.
ubuntu@localhost:~$ sudo reboot
ubuntu@localhost:~$ sudo snappy versions -a
Part Tag Installed Available Fingerprint Active
ubuntu-core edge 142 - 18d8361edb919f *
ubuntu-core edge 140 - 184ad1e863e947 -
docker edge 1.3.3.001 - 60b98945e5fc1d *
- バージョンダウン
ubuntu@localhost:~$ sudo snappy rollback ubuntu-core
Ubuntu Core は、安全にバージョンアップやバージョンダウンができるように、アプリケーションやOSパッチごとに資産が分離されている