-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mac 下报错 , apt-get update -yqq 无法执行 #2358
Comments
是因为网络问题,开代理就好了 |
已经开代理了, mac,下好像没有 apt-get 这个命令,为什么会执行 |
|
dockerfile里的命令都是在容器里执行的 |
系统代理 |
多谢,虽然我没明白,容器内怎么配置,使用宿主机代理,但是我把registry mirrors 的地址,复制到proxies里,好像还是好了,但还是报错了
|
在Dockerfile中找需要代理的地方,在前面加 系统代理是系统上设置的,但是终端比较调皮,终端里的shell不认系统代理,需要export设置变量,设置完也只是在当前shell当前标签页可用 |
好详细,多谢哈 |
I've restarted Docker for mac and then I've executed the following command:
It worked! BUT it didn't do what I expected! :( I've then went to the Dockerfile and removed the line that was causing the issue and the image build worked. |
Hi 👋 this issue has been automatically marked as |
Hi again 👋 we would like to inform you that this issue has been automatically |
---> Running in 9f40413d672a
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-amd64/by-hash/SHA256/b0c14b409c2c7b5a76a3d75e6b087f130f3dbe3145c319297e6a9ff5f008ae92 Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
ERROR: Service 'workspace' failed to build: The command '/bin/sh -c set -xe; apt-get update -yqq && pecl channel-update pecl.php.net && groupadd -g ${PGID} laradock && useradd -u ${PUID} -g laradock -m laradock -G docker_env && usermod -p "*" laradock -s /bin/bash && apt-get install -yqq apt-utils libzip-dev zip unzip php${LARADOCK_PHP_VERSION}-zip nasm && php -m | grep -q 'zip'' returned a non-zero code: 100
The text was updated successfully, but these errors were encountered: