我需要能够:
-- RUN apk add --no-cache autossh
从ubuntu将我的项目迁移到高山linux
构建Dockerfile时出现错误。任何解决方法?我无法摆脱对autossh的要求,因为我需要它才能连接到我的compose db。
ERROR: unsatisfiable constraints:
autossh (missing):
required by: world[autossh]
The command '/bin/sh -c apk add --no-cache autossh' returned a non-zero code: 1
软件包autossh位于社区存储库中,并且只有Edge分支,您可以在pkgs.alpinelinux.org上进行检查。默认情况下,Alpine仅来自稳定分支中的main/etc/apk/repositories
,因此要从另一个存储库和分支中安装软件包,您必须在此处添加它,例如:
echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
apk update
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句