Dockerに入門

イシュー

  • とりあえず、Elastic BeanstalkでSailsを動かしてみたいので、Dockerを触ってみる。

参考

インストール(最新のタグをインストール)

git clone --depth=1 -b v5.9.0 git@github.com:laradock/laradock.git

EB

AccessKey

  • AWSのAccessKeyを確認しようとしたらこんなメッセージが

    Important Change - Managing Your AWS Secret Access Keys As described in a previous announcement, you cannot retrieve the existing secret access keys for your AWS root account, though you can still create a new root access key at any time. As a best practice, we recommend creating an IAM user that has access keys rather than relying on root access keys.

    重要な変更 - あなたのAWS秘密アクセスキーの管理 前回の発表で説明したように、(まだ、いつでも新しいルートアクセスキーを作成することができますが)あなたのAWSのrootアカウントの既存の秘密アクセスキーを取得することはできません。 ベストプラクティスとして、私たちはアクセスキーではなく、ルートアクセスキーに頼るIAMユーザーを作成することをお勧めします。

  • IAM Best Practices - AWS Identity and Access Management

Windows

trouble shoot

Windows might ask for the permission to configure a network adapter. Sometimes, such confirmation window is minimized in the taskbar.

This computer doesn't have VT-X/AMD-v enabled.

Enabling it in the BIOS mandatory

Docker Compose

$ docker-compose up -d
docker-machine ls
  • dockerに接続
docker exec -it <コンテナID_or_NAME> bash

kinematic

docker run -p 80:80 -d php:5.6-apache

docker-compose-lamp

laradoc

docker-compose exec --user=laradock workspace bash
  • laravel-project createコマンド
composer create-project laravel/laravel my-cool-app "5.2.*"

Docker-machine へ接続

docker-machine ssh default

Dockerのマウント先