Docker Compose

參:https://docs.docker.com/compose/

  1. Compose is a tool for defining and running multi-container Docker applications.
  2. 3 個步驟 :

Using Compose is basically a three-step process.
1) Define your app’s environment
2) Define the services that make up your app in docker-compose.yml
3) Lastly, run docker-compose up and Compose will start and run your entire app.

  1. compose documentation

安裝 :
參: https://docs.docker.com/compose/install/
1) Install Docker Engine: 依OS 選一種
2) The Docker Toolbox installation includes both Engine and Compose, so Mac and Windows users are done installing. Others should continue to the next step.

4 啟動
Get started with Docker Compose // https://docs.docker.com/compose/gettingstarted/

1) 先把Docker engine和Docker compose 裝好
2) 然後有6個步驟 : Step 1.2.3.4.5.6 // 參; https://docs.docker.com/compose/gettingstarted/

3) 快速啟動指引: Next, try the quick start guide for Django, Rails, or WordPress.
參: https://docs.docker.com/compose/gettingstarted/
5 指令檔: command-line reference, 這要留起來,不然要用時會找不到
參: https://docs.docker.com/compose/reference/

6 Docker-compose 怎麼用?

查指令檔功能
要看這個: Overview of docker-compose CLI
參 :https://docs.docker.com/compose/reference/overview/

7.Compose CLI environment variables
參 : https://docs.docker.com/compose/reference/envvars/

操作性指令就用查的

(參:https://docs.docker.com/compose/overview/)

 

廣告
新文章
發表留言

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

您的留言將使用 WordPress.com 帳號。 登出 / 變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 / 變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 / 變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 / 變更 )

連結到 %s

%d 位部落客按了讚: