sixeyed / diamol

Code samples for the book "Learn Docker in a Month of Lunches"
https://www.manning.com/books/learn-docker-in-a-month-of-lunches
Creative Commons Attribution Share Alike 4.0 International
515 stars 277 forks source link

UNABLE_TO_VERIFY_LEAF_SIGNATURE occurs in chapter 03. #68

Open christopher-crispy opened 3 months ago

christopher-crispy commented 3 months ago

docker container run -e TARGET=docker.com web-ping

Alias tip: dr -e TARGET=docker.com web-ping web-ping Pinging: docker.com; method: HEAD; 3000ms intervals Making request number: 1; at 1724131005338 { Error: unable to verify the first certificate at TLSSocket.onConnectSecure (_tls_wrap.js:1055:34) at TLSSocket.emit (events.js:198:13) at TLSSocket._finishInit (_tls_wrap.js:633:8) code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' } Making request number: 2; at 1724131008342 { Error: unable to verify the first certificate at TLSSocket.onConnectSecure (_tls_wrap.js:1055:34) at TLSSocket.emit (events.js:198:13) at TLSSocket._finishInit (_tls_wrap.js:633:8) code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' } Making request number: 3; at 1724131011342 { Error: unable to verify the first certificate at TLSSocket.onConnectSecure (_tls_wrap.js:1055:34) at TLSSocket.emit (events.js:198:13) at TLSSocket._finishInit (_tls_wrap.js:633:8) code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' } Making request number: 4; at 1724131014349 { Error: unable to verify the first certificate at TLSSocket.onConnectSecure (_tls_wrap.js:1055:34) at TLSSocket.emit (events.js:198:13) at TLSSocket._finishInit (_tls_wrap.js:633:8) code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' } ^ZMaking request number: 5; at 1724131017356 { Error: unable to verify the first certificate at TLSSocket.onConnectSecure (_tls_wrap.js:1055:34) at TLSSocket.emit (events.js:198:13) at TLSSocket._finishInit (_tls_wrap.js:633:8) code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' }

docker version

Client: Version: 27.0.3 API version: 1.46 Go version: go1.21.11 Git commit: 7d4bcd8 Built: Fri Jun 28 23:59:41 2024 OS/Arch: darwin/arm64 Context: desktop-linux

Server: Docker Desktop 4.32.0 (157355) Engine: Version: 27.0.3 API version: 1.46 (minimum version 1.24) Go version: go1.21.11 Git commit: 662f78c Built: Sat Jun 29 00:02:44 2024 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.7.18 GitCommit: ae71819c4f5e67bb4d5ae76a6b735f29cc25774e runc: Version: 1.7.18 GitCommit: v1.1.13-0-g58aa920 docker-init: Version: 0.19.0 GitCommit: de40ad0`

Add the following ENV to Dockerfile, there is no error.

Maybe from FROM "diamol/node image", there seems to be an SSL certificate verification issue.