无法从 docker 个容器访问互联网
Can't access internet from docker container
我在尝试从 docker 容器(使用 zotonic/zotonic-dev)运行 zotonic 时出现 运行 这个错误,似乎我无法连接到来自容器的互联网。我已尝试使用 My docker container has no internet 中的解决方案,但 none 似乎有效,或者我可能跳过了某些内容?
我开始使用 docker-compose run --service-ports zotonic sh
Building Zotonic for the first time.
EXOMETER_PACKAGES="-afunix -netlink -exo +setup" && ./rebar -C rebar.config.lock get-deps
WARN: Missing plugins: [rebar_lock_deps_plugin]
==> zotonic (get-deps)
Pulling goldrush from {git,"git://github.com/DeadZen/goldrush.git",
"71e63212f12c25827e0c1b4198d37d5d018a7fec"}
Cloning into 'goldrush'...
fatal: Unable to look up github.com (port 9418) (Try again)
ERROR: sh(git clone -n git://github.com/DeadZen/goldrush.git goldrush)
failed with return code 128 and the following output:
Cloning into 'goldrush'...
fatal: Unable to look up github.com (port 9418) (Try again)
ERROR: 'get-deps' failed while processing /opt/zotonic: rebar_abort
make: *** [GNUmakefile:40: get-deps] Error 1
Erlang/OTP 20 [erts-9.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [kernel-poll:true]
虽然重新启动docker不起作用,但我像@isp-zax所说的reinstalling docker using curl解决了它。
我在尝试从 docker 容器(使用 zotonic/zotonic-dev)运行 zotonic 时出现 运行 这个错误,似乎我无法连接到来自容器的互联网。我已尝试使用 My docker container has no internet 中的解决方案,但 none 似乎有效,或者我可能跳过了某些内容?
我开始使用 docker-compose run --service-ports zotonic sh
Building Zotonic for the first time.
EXOMETER_PACKAGES="-afunix -netlink -exo +setup" && ./rebar -C rebar.config.lock get-deps
WARN: Missing plugins: [rebar_lock_deps_plugin]
==> zotonic (get-deps)
Pulling goldrush from {git,"git://github.com/DeadZen/goldrush.git",
"71e63212f12c25827e0c1b4198d37d5d018a7fec"}
Cloning into 'goldrush'...
fatal: Unable to look up github.com (port 9418) (Try again)
ERROR: sh(git clone -n git://github.com/DeadZen/goldrush.git goldrush)
failed with return code 128 and the following output:
Cloning into 'goldrush'...
fatal: Unable to look up github.com (port 9418) (Try again)
ERROR: 'get-deps' failed while processing /opt/zotonic: rebar_abort
make: *** [GNUmakefile:40: get-deps] Error 1
Erlang/OTP 20 [erts-9.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [kernel-poll:true]
虽然重新启动docker不起作用,但我像@isp-zax所说的reinstalling docker using curl解决了它。