1. nginxのイメージをローカルキャッシュから探す => なければDocker Hubから最新版をダウンロード 2. イメージから新しいコンテナを作成 3. Docker内の仮想ネットワークに仮想IPを付与する 4. 80番のポートをホスト/コンテナ両方に開く(nginxのデフォルトが80番) 5. Dockerfile内のコマンドを使ってコンテナを起動する 1. --publish(-p) HOST_IP:CONTAINER_IP CONTAINER_IPをHOST_IPに割り当てることができる 2. --detach(-d) バックグラウンドで実行できる 3. --name 特定の名前をつけることができる 4. -it ssh接続のように、ターミナルを起動して操作する ubuntuやcentOSはこのコマンドで起動 5. --rm exit終了時、コンテナも削除する 6. --ne