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

本文介绍了Docker的基本概念及其在服务器环境中的应用,并探讨了如何使用Docker Compose简化多容器应用程序的部署流程。通过在Mac上搭建PHPWordExpress环境的具体步骤,帮助读者了解Docker及Compose的实际操作。
1万+

被折叠的 条评论
为什么被折叠?



