yiisoft / yii2-docker

Official Docker images suitable for Yii 2.0
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
384 stars 202 forks source link

Service 'php' failed to build #97

Closed hle-aashish closed 4 years ago

hle-aashish commented 4 years ago

I am new to Yii2. As mentioned in the README, I cloned the repo and made a copy of .env. But, when I do docker-compose build as mentioned in the readme, I am getting the following message.

Service 'php' failed to build: Get https://registry-1.docker.io/v2/library/php/manifests/7.4-apache: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fphp%3Apull&service=registry.docker.io: dial tcp: lookup auth.docker.io: no such host

Anyone to help? Please.

Sarke commented 4 years ago

Looks like a network issue maybe?

But you don't have to build it, you can just use the built version on https://hub.docker.com/r/yiisoftware/yii2-php

schmunk42 commented 4 years ago

It's a network problem on your side.