【问题标题】:installing chrome in docker file在 docker 文件中安装 chrome
【发布时间】:2018-03-06 14:00:05
【问题描述】:

我正在尝试使用以下标准方式在 docker build 中安装 google chrome:

ARG CHROME_VERSION="google-chrome-stable"
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
  && echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
  && apt-get update -qqy \
  && apt-get -qqy install \
    ${CHROME_VERSION:-google-chrome-stable} \
  && rm /etc/apt/sources.list.d/google-chrome.list \
  && rm -rf /var/lib/apt/lists/* /var/cache/apt/*

但我的代理不允许 google.com,所以它失败了。还有其他方法可以在 ubuntu 中安装 google chrome 吗?我不想在网络中托管任何文件,所以如果有另一个来源(例如 github)我可以在其中找到 chrome 的 debian 包,那么我可以得到它并使用 dpkg 运行它。或者,还有其他想法吗?

非常感谢。

【问题讨论】:

    标签: google-chrome dockerfile


    【解决方案1】:

    我在我的网络中找到了一个镜像。用我的镜像替换源,工作完成!

    【讨论】:

      猜你喜欢
      • 2012-04-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多