背景 我本地开发用的 php 和 nginx 都部署在 docker 中,宿主机为 MacOS 宿主机中 hosts 一个域名 127.0.0.1 abc.test,再把 nginx 容器的 80 端口映射出来。就能正常通过 abc.test 访问到 nginx 再转发给 php 看起来很完美,直到 —— 我需要在 php 中访问 abc.test 这个站点的时候 当我在 php 容器中需要解析这
标签: Docker
Windows 10 Docker 基于 WSL 2 时读写性能的坑
Windows 10 启用 WSL 2 Windows 10 启用 Hyper-V 虚拟机 首先到 Docker 官网下载一个 Docker Desktop Windows 安装包 https://www.docker.com/get-started 这有官方的安装教程 https://docs.docker.com/docker-for-windows/install/ 安装过程中你会发现它一直