Last active
August 29, 2015 14:07
-
-
Save loongmxbt/a8f306d3321cdad4baaa to your computer and use it in GitHub Desktop.
docker.hhvm 被墙解决方案
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
由于 hhvm.com 全线被墙,局域网内安装含 hhvm 的 docker 会出错,如下: | |
``` | |
wget: unable to resolve host address 'dl.hhvm.com' | |
``` | |
以 [docker.hhvm](https://github.com/nikolaplejic/docker.hhvm) 为例,解决方法为修改源。找到 Dockerfile 的 Line 27-28, | |
``` | |
RUN wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add - | |
RUN echo deb http://dl.hhvm.com/ubuntu trusty main | sudo tee /etc/apt/sources.list.d/hhvm.list | |
``` | |
修改其中的 `dl.hhvm.com` 为 `dl.hiphop-php.com`,重新运行 | |
``` | |
docker build -t hhvm . | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment