点击右边导航栏,选择你本身的系统,按步骤安装git
《Docker 从入门到实践》github
使用本人的项目 khs1994-docker/lnmp 来做为 LNMP 环境。docker
$ git clone --recursive https://github.com/khs1994-docker/lnmp.git # $ git clone --recursive git@github.com:khs1994-docker/lnmp.git # 中国镜像 $ git clone --recursive https://code.aliyun.com/khs1994-docker/lnmp.git # $ git clone --recursive git@code.aliyun.com:khs1994-docker/lnmp.git
$ cd lnmp $ ./lnmp-docker up # Windows 10 打开 PowerShell 执行
Windows 10 PowerShell
默认禁止执行脚本,请以管理员打开 PowerShell
执行如下命令解除限制bash
$ set-ExecutionPolicy RemoteSigned # 输入 `Y` 确认
$ curl 127.0.0.1 Welcome use khs1994-docker/lnmp v18.09 x86_64 With Pull Docker Image development # Windows $ wsl curl 127.0.0.1