LoginSignup
13
12

More than 5 years have passed since last update.

Docker 超入門 〜 Boot2Docker 導入から HelloWorld まで〜

Posted at

:black_square_button: boot2docker インストール

brew install boot2docker

:black_square_button: 初期化やら設定やら

boot2docker init
boot2docker start
$(boot2docker shellinit)

:black_square_button: とりあえず、Hello World

docker run ubuntu echo hello world

hello world

:black_square_button: 番外編:こんなエラー出たら?

FATA[0000] Post http:///var/run/docker.sock/v1.16/containers/create: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?

環境変数の初期化を忘れてましたね。。。

$(boot2docker shellinit)

で解消。

:black_square_button: Special Thanks

Mac OSXでDocker(インストール編)

:black_square_button: 雑記

これぐらいの内容でエントリ書くなよって感じが満載ですが、これは次のエントリを書くための前準備になるので、一応記事として残しますた。。。
こんな記事でもお役にたてれば幸いです。。。

13
12
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
13
12