我嘗試Apromore
透過 docker 啟動並運行,從其儲存庫中取得最新的 docker (19.03.0-beta4) 和 docker-compose (1.24.0) 版本,我還有 Ubuntu 19.04。 Issuingdocker-compose up
啟動了建置過程,但是當涉及到 時apt-get update
,它開始重複獲取相同的包列表,並且似乎進入了無限循環。任何幫助表示讚賞。
Step 3/24 : RUN apt-get -y update && sed -i -e '/^assistive_technologies=/s/^/#/' /etc/java-8-openjdk/accessibility.properties && apt-get -y install git && apt-get -y install python3 && apt-get -y install python3-pip && apt-get -y install xvfb && apt-get -y install python3-tk && apt-get -y clean
---> Running in fdd310721344
Ign:1 http://deb.debian.org/debian stretch InRelease
Ign:2 http://security.debian.org/debian-security stretch/updates InRelease
Ign:3 http://deb.debian.org/debian stretch-updates InRelease
Get:4 http://security.debian.org/debian-security stretch/updates Release [92.7 kB]
Get:4 http://security.debian.org/debian-security stretch/updates Release [92.7 kB]
Ign:5 http://deb.debian.org/debian stretch Release
Get:6 http://deb.debian.org/debian stretch-updates Release [89.4 kB]
Get:4 http://security.debian.org/debian-security stretch/updates Release [92.7 kB]
Get:4 http://security.debian.org/debian-security stretch/updates Release [92.7 kB]
Get:6 http://deb.debian.org/debian stretch-updates Release [89.4 kB]
Ign:6 http://deb.debian.org/debian stretch-updates Release
Get:7 http://deb.debian.org/debian stretch/main all Packages [3358 kB]
Get:4 http://security.debian.org/debian-security stretch/updates Release [92.7 kB]
Ign:4 http://security.debian.org/debian-security stretch/updates Release
Get:8 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [492 kB]
Get:7 http://deb.debian.org/debian stretch/main all Packages [3358 kB]
Get:8 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [492 kB]
Get:7 http://deb.debian.org/debian stretch/main all Packages [3358 kB]
Get:8 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [492 kB]
Get:7 http://deb.debian.org/debian stretch/main all Packages [3358 kB]
Get:8 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [492 kB]
Get:7 http://deb.debian.org/debian stretch/main all Packages [3358 kB]
Get:8 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [492 kB]
Get:7 http://deb.debian.org/debian stretch/main all Packages [3358 kB]
答案1
同時,事實證明是 VPN 造成了麻煩。現在問題解決了。
答案2
將您的更改RUN
為這些行
RUN sed -i -e '/^assistive_technologies=/s/^/#/' /etc/java-8-openjdk/accessibility.properties
RUN apt-get -y update && apt-get -y install \
git \
python3 \
python3-pip \
xvfb \
python3-tk
RUN apt-get -y clean
再試一次,我們將看到哪個運行導致了循環