docker - 在运行 Dockerfile 时接受许可条款
问题描述
尝试安装 Berryconda 时,我无法在 Docker 上构建映像。我需要接受条款和条件才能继续(如下图所示)。以前有没有人遇到过这个问题并且知道如何解决这个问题?
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
解决方案
您应该能够使用 -b 参数运行 Berryconda 安装脚本,以批处理模式执行脚本。
-b run install in batch mode (without manual intervention),
it is expected the license terms are agreed upon
安装程序的可用命令行参数在安装脚本顶部附近进行了描述。
推荐阅读
- r - 是否有用于从图像中读取条形码的 R 包?
- javascript - 设置相对于父级的图像大小
- python - 如何用不同的 x 轴名称和 y 轴名称标记每个图形
- angular - 如何在 codeanywhere IDE 中预览 Angular 应用程序?
- python - 在 Python 中使用带有 AST 的装饰器包装函数
- linux - httpd 虚拟主机文件重定向到不正确的网站
- c# - 尝试将新对象添加到列表时出现 404 错误 MVC
- javascript - 使用 GTM / JQuery 获取手风琴标题
- python - 与 Pandas 交叉连接
- r - 添加 ggsignif 以使用数字 x 轴进行绘图会导致错误“只能处理在 x 轴上绘制的组的数据”