docker报错 ERROR: Service 'workspace' failed to build: ERROR: Service 'php-fpm' failed to build:

在 Windows 系统中使用 Laradock 搭建基于 Docker 的 PHP 开发环境
执行命令 docker-compose up nginx mysql redis

执行过程中出现错误
laradock ERROR: Service ‘workspace’ failed to build:
docker ERROR: Service 'php-fpm' failed to build:

解决方案: 将 .env中的WORKSPACE_TIMEZONE=UTC改为WORKSPACE_TIMEZONE=PRC

C:\Windows\System32\drivers\etc中添加

199.232.28.133 raw.githubusercontent.com

然后需要多试几次,网络可能会出现问题。

posted @ 2020-08-28 11:58  牛奔  阅读(4689)  评论(0编辑  收藏  举报