5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

docker 0.8〜をBoxenでインストールする

Last updated at Posted at 2014-02-15

docker0.8でMacOSに正式に対応したということで、Boxenを使ってインストールできたのでそのメモ。

■Puppetfileに以下を追加する。

github "virtualbox", "1.0.10"
github "docker",     "1.0.3", :repo => "morgante/puppet-docker"

■自分のGithubアカウントのppファイルに以下を追記する
(例 : modules/people/manifests/kuozumijp.pp)

include virtualbox
include docker

■インストール(1回目は失敗するかもしれない。自分は2回目で成功した。)

$ script/boxen --no-fde
Notice: Compiled catalog for macbookair.local in environment production in 4.49 seconds
Notice: /Stage[main]/Docker/Package[docker]/ensure: created
Notice: Package[mosh](provider=homebrew): Updating homebrew formulas
Notice: /Stage[main]/People::Kuozumijp/Package[mosh]/ensure: created

■boot2docker-vmを起動

$ boot2docker up
[2014-02-14 03:42:59] Starting boot2docker-vm...
[2014-02-14 03:43:20] Started.

■SSHで入る(パスワードは 『tcuser』です。)

$ boot2docker ssh
Warning: Permanently added '[localhost]:2022' (RSA) to the list of known hosts.
docker@localhost's password:
                        ##        .
                  ## ## ##       ==
               ## ## ## ##      ===
           /""""""""""""""""\___/ ===
      ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ /  ===- ~~~
           \______ o          __/
             \    \        __/
              \____\______/
 _                 _   ____     _            _
| |__   ___   ___ | |_|___ \ __| | ___   ___| | _____ _ __
| '_ \ / _ \ / _ \| __| __) / _` |/ _ \ / __| |/ / _ \ '__|
| |_) | (_) | (_) | |_ / __/ (_| | (_) | (__|   <  __/ |
|_.__/ \___/ \___/ \__|_____\__,_|\___/ \___|_|\_\___|_|
boot2docker: 0.5.4
docker@boot2docker:~$

■環境変数を設定しておく

$ export DOCKER_HOST=tcp://
5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?