尝试使用 docker 执行 apt-get,导致错误 100

trying to do apt-get with docker, causing error 100

我有一个正在对接的 node.js 应用程序,它有一个系统依赖魔法图。我似乎无法安装它,我已经尝试在 Dockerfile 中使用 apt-get RUN apt-get install --force-yes -y graphicsmagick 和一些变体,但我一直收到错误 The command '/bin/sh -c apt-get install --force-yes -y graphicsmagick' returned a non-zero code: 100.

不确定如何解决这个问题,是否有关于如何使用 http://www.graphicsmagick.org/INSTALL-unix.html url 安装 gz 文件的步骤教程?

在安装新包之前,您需要更新可用包列表。

替换RUN apt-get install --force-yes -y graphicsmagick

RUN apt-get update && apt-get install -y graphicsmagick

如果不能解决问题请显示日志