首页 > 解决方案 > 在运行 Dockerfile 时接受许可条款

问题描述

尝试安装 Berryconda 时,我无法在 Docker 上构建映像。我需要接受条款和条件才能继续(如下图所示)。以前有没有人遇到过这个问题并且知道如何解决这个问题?

Berryconda T&C

Dockerfile 的 Berryconda 安装部分

RUN : \
    && echo "Installing Berryconda" \
    && wget -O berryconda3-2.0.0.sh "https://github.com/jjhelmus/berryconda/releases/download/v2.0.0/Berryconda3-2.0.0-Linux-armv7l.sh" \
    && chmod +x berryconda3-2.0.0.sh \
    && ./berryconda3-2.0.0.sh /usr/bin/berryconda3

标签: dockerdockerfile

解决方案


您应该能够使用 -b 参数运行 Berryconda 安装脚本,以批处理模式执行脚本。

    -b       run install in batch mode (without manual intervention),
             it is expected the license terms are agreed upon

安装程序的可用命令行参数在安装脚本顶部附近进行了描述。


推荐阅读