报错问题:
WARNING: ca-certificates.crt does not contain exactly one certificate or CRL: skipping
, message: "+ certFile=/app/cert/certificate.crt\n+ certLog=/app/cert.log\n+ srcIp=169.254.10.1\n+ srcHost=api.weixin.qq.com\n+ checkFileCnt=0\n+ is_user_root\n+ id -u\n+ '[' 0 -eq 0 ]\n+ echo 'User is root, patching env and certs.'\n+ '[' '!' -f /app/cert/certificate.crt ]\n+ '[' '!' -f /etc/os-release ]\n+ . /etc/os-release\n+ NAME='Alpine Linux'\n+ ID=alpine\n+ VERSION_ID=3.13.12\n+ PRETTY_NAME='Alpine Linux v3.13'\n+ HOME_URL=https://alpinelinux.org/\n+ BUG_REPORT_URL=https://bugs.alpinelinux.org/\n+ echo '[I]: os release is alpine'\n+ update-ca-certificates -h\nWARNING: ca-certificates.crt does not contain exactly one certificate or CRL: skipping\n",Back-off restarting failed container,]
我的dockerfile代码
# 使用 HTTPS 协议访问容器云调用证书安装
RUN apk add ca-certificates