Docker,compose,kitematic Overview and build Php WordExpress

Docker 通常在服務器環境中使用較多,出於服務器端配置相對繁瑣,前端使用Npm,yarn 等管理工具已經很方便了。下面開始介紹概念以及環境搭建

首先介紹下docker的基本概念照抄一下:

Docker is the world’s leading software container platform. Developers use Docker to eliminate “works on my machine” problems when collaborating on code with co-workers. Operators use Docker to run and manage apps side-by-side in isolated containers to get better compute density. Enterprises use Docker to build agile software delivery pipelines to ship new features faster, more securely and with confidence for both Linux and Windows Server apps.

至於docker compose 你可以理解爲幫你成組管理docker 工具

Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a Compose file to configure your application’s services. Then, using a single command, you create and start all the services from your configuration. To learn more about all the features of Compose see the list of features.
Compose is great for development, testing, and staging environments, as well as CI workflows. You can learn more about each case in Common Use Cases.

下面以介紹下在Mac上利用 kitematic(像sourceTree 一樣的UI工具) 搭建php wordExpress 環境.

.1 下載 DockerToolBox

https://www.docker.com/products/docker-toolbox

.2 安裝完成後打開 kitematic ,打開過程中會進行vm 的初始化

這裏寫圖片描述

.3 下載mysql , wordexpress

3.1 配置mysql 的密碼

這裏寫圖片描述

3.2 完成wordExpress mysql配置

這裏寫圖片描述

4 點擊右上部分 WBE REVIEW 進入網頁 輸入信息完畢之後

這裏寫圖片描述

                                                            Thanks for reading
發佈了283 篇原創文章 · 獲贊 242 · 訪問量 38萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章