我是mac用户,不能在mac上安装gluu,所以我尝试在Dockerfile中的ubuntu上安装它:
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get upgrade
RUN apt-get install -y \
curl \
openssl \
ca-certificates
RUN echo "deb https://repo.gluu.org/ubuntu/ bionic main" > /etc/apt/sources.list.d/gluu-repo.list
RUN curl https://repo.gluu.org/ubuntu/gluu-apt.key | apt-key add -
RUN apt-get install gluu-server但是我在终端中得到了这个错误:
E: Unable to locate package gluu-server
The command '/bin/sh -c apt-get install gluu-server' returned a non-zero code: 100有谁可以帮我?
发布于 2020-01-13 12:20:58
这应该是可行的
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install \
curl \
openssl \
ca-certificates \
apt-transport-https -y
RUN echo "deb https://repo.gluu.org/ubuntu/ bionic main" > /etc/apt/sources.list.d/gluu-repo.list
RUN curl https://repo.gluu.org/ubuntu/gluu-apt.key | apt-key add -
RUN apt-get update
RUN apt-get install gluu-server -y发布于 2020-01-11 21:18:44
请只需将行RUN apt-get install gluu server更改为RUN apt-get install gluu server-3.1.0,如果它不起作用,除了添加此运行apt-get install apt-transport-https after RUN curl E19| apt-key add -E210。
此外,您创建此docker映像的方式并不是最优的,您正在创建太多不推荐的图层,请不要在生产环境中这样做
https://stackoverflow.com/questions/59644954
复制相似问题