Docker Engine

 

docker-engine

 

docker-engine-2

 

特色 // https://www.docker.com/products/docker-engine#/features

Docker overview // https://www.docker.com/products/overview

Docker Platform // https://www.docker.com/products/overview#/install_the_platform

Docker Hub: a cloud hosted service from Docker that provides registry capabilities for public and private content.

Docker Cloud : for Docker container management and deployment.

Docker Data center:

廣告

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/)

 

Docker : ID, Engine

看了前一篇 Docker 的概念, 再來想用 Docker 須先申請一個帳號

  • Docker 帳號申請 : https://docs.docker.com/docker-id/

有這帳號, 就可以用  Docker Store, Docker Cloud, Docker Hub repositories, and some beta programs.

  • Docker 引擎的安裝, 有Mac, Windows, Linux 3 種.
  1. Docker installation on Windows

參考:  Install Docker on Windows ,前一篇說過 for window 有些要求.

  • 64bit Windows 10 Pro, Enterprise and Education (1511 November update, Build 10586 or later). In the future we will support more versions of Windows 10.
  • The Hyper-V package must be enabled. The Docker for Windows installer will enable it for you, if needed. (This requires a reboot).

安裝指引 : Download and install instructions, and to learn all about Docker for Windows.

安裝前有些注意事項要看.

安裝後就有 Docker Engine, Docker CLI client, Docker Compose, and Docker Machine.

如果是Window user , 讀: Get started with Docker for Windows

2. Docker installation on Linux

但Linux distributions 又有好幾種,  document就是用查的, 用哪一種 就查哪一種.

若 OS 是 Ubuntu, 參考 : Install Docker on Ubuntu

 

 

 

 

%d 位部落客按了讚: