我有一个简单的docker文件:
FROM ubuntu:eoan
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y \
chromium-browser \
chromium-chromedriver
当我尝试构建它时:
...
Preparing to unpack .../00-chromium-browser_77.0.3865.120-0ubuntu1.19.10.1_amd64.deb ...
=> Installing the chromium snap
==> Checking connectivity with the snap store
===> Unable to contact the store, trying every minute for the next 30 minutes
而且它似乎从来没有到达所说的快照店。如果图像是基于disco
而不是eoan
,则可以很好地工作。它在物理机器上工作得很好。
发布于 2020-03-29 07:32:05
这不是一个解决方案,而是一种变通办法。只需使用google-chrome
即可。我遇到了这个问题,突然有一天,一直在构建的docker图像被打破了。我的案例就像你的:Ubuntu19.10作为docker镜像的基础。
RUN curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN apt-get install -y ./google-chrome-stable_current_amd64.deb
RUN rm google-chrome-stable_current_amd64.deb
https://stackoverflow.com/questions/58997430
复制相似问题