Closed Hurricane-eye closed 2 years ago
Hello @Hurricane-eye! It looks like Docker can't access GitHub for some reason. Are you behind some kind of proxy, or a corporate/school network? Are you using Docker for anything else -- does it work for those things?
@bfirsh Thanks for you quick reply! I don't think I use any kind of proxy, but I actually use a shcool network. I never try to downloaded something from Github when I built a docker image before. Maybe use proxy in docker can solve this? But it seems can't be done with cog build command.
That would probably explain it. It's probably not possible to build Docker images in your school network.
What model are you trying to build? Is it your own, or somebody else's?
@bfirsh I am trying to build some useful and easy to test models like wav2lip and GPEN. I used to build GPEN docker image successfully with my own dockfile but the source code was downloaded in local and used 'ADD' command to add in the image.
Using the method mentioned in https://docs.docker.com/network/proxy/ can handle this problem.
Thanks for following up and sharing how you worked around this, @Hurricane-eye. ✨
@all-contributors please add @Hurricane-eye for bugs and questions
@zeke
I've put up a pull request to add @Hurricane-eye! :tada:
when I build a model with cog, I always get this error and fail to build. How can I handle this?