We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FROM scratch does not include any ca-certificates, so it will fail to connect to any TLS-enabled MQTT broker.
FROM scratch
❯ docker pull sapcc/mosquitto-exporter:0.6.0 0.6.0: Pulling from sapcc/mosquitto-exporter 257963aec3e6: Pull complete Digest: sha256:109e3fbbf99943eacc66a57a6e535ea43878fc63c328d1e27a928e6e69c72ddb Status: Downloaded newer image for sapcc/mosquitto-exporter:0.6.0 docker.io/sapcc/mosquitto-exporter:0.6.0 ❯ docker run -e BROKER_ENDPOINT=tls://test.mosquitto.org:8883 -p 9234:9234 sapcc/mosquitto-exporter:0.6.0 2020/06/20 19:06:52 Starting mosquitto_broker 0.6.0 (0ac92b5), go1.12.3 2020/06/20 19:06:52 Error: Failed to connect to broker: Network Error : x509: certificate signed by unknown authority
The text was updated successfully, but these errors were encountered:
Needs the following in the Dockerfile.
Dockerfile
FROM scratch COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
Sorry, something went wrong.
certs are secrets should not be part of image. mount certificate files using docker volume
No branches or pull requests
FROM scratch
does not include any ca-certificates, so it will fail to connect to any TLS-enabled MQTT broker.The text was updated successfully, but these errors were encountered: