(我在找到解决方案后添加了这个问题,因为当我需要它时,我的错误没有匹配。)
将 rust 应用程序打包为 docker 容器后,出现以下错误:Hyper error: invalid certificate: UnknownIssuer
.
我使用了官方 rust docker 镜像中的示例(参见https://hub.docker.com/_/rust/):
FROM rust:1.40 as builder
WORKDIR /usr/src/myapp
COPY . .
RUN cargo install --path .
FROM debian:buster-slim
RUN apt-get update && apt-get install
COPY --from=builder /usr/local/cargo/bin/myapp /usr/local/bin/myapp
CMD ["myapp"]