![](/img/trans.png)
[英]ERROR: unsatisfiable constraints when installing PostGIS on the Alpine Docker image
[英]Unsatisfiable constraints when installing packages on docker alpine
我正在基于ruby:2.3-alpine
构建一个docker镜像。 我需要安装几个软件包才能使Rails应用程序正常运行。 不幸的是,以下软件包在高山存储库中不存在。
用什么方式安装它们?
$ uname -a
Linux 50642453afd5 4.1.17-boot2docker #1 SMP Thu Feb 11 08:12:31 UTC 2016 x86_64 Linux
$ apk add iceweasel
ERROR: unsatisfiable constraints:
iceweasel (missing):
required by: world[iceweasel]
要安装的软件包:
自2016年6月起,“ firefox-esr” 取代了Iceweasel。
以下是如何将其安装在Alpine Docker容器中以及如何运行以验证其安装正确的方法:
FROM ruby:2.3-alpine
RUN apk add --no-cache firefox-esr
RUN firefox --version
您可能还需要像xvfb这样的虚拟显示器(帧缓冲区)。 看到更多信息=> https://github.com/rickypc/docker-python-firefox-xvfb/blob/master/Dockerfile
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.