You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then, when running simple cluster creation command:
bash-5.1# DOCKER_HOST="tcp://localhost:2376" DOCKER_CERT_PATH="/certs" DOCKER_TLS=1 DOCKER_CERT_PATH="/certs/client" k3d cluster create
ERRO[0000] Failed to get nodes for cluster 'k3s-default': docker failed to get containers with labels 'map[k3d.cluster:k3s-default]': failed to list containers: Error response from daemon: Client sent an HTTP request to an HTTPS server.
I'm getting Error like k3d would be ignoring the env vars I'm using to let it know it's via TLS.
What did you expect to happen
k3d should honour these env vars making the docker runtime work via TLS.
Having simple test being run in the same place as the command above, I'm getting:
bash-5.1# docker version
Client:
Version: 20.10.9
API version: 1.41
Go version: go1.16.8
Git commit: c2ea9bc
Built: Mon Oct 4 16:03:22 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.9
API version: 1.41 (minimum version 1.12)
Go version: go1.16.8
Git commit: 79ea9d3
Built: Mon Oct 4 16:07:30 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.4.11
GitCommit: 5b46e404f6b9f661a205e28d59c982d3634148f8
runc:
Version: 1.0.2
GitCommit: v1.0.2-0-g52b36a2d
docker-init:
Version: 0.19.0
GitCommit: de40ad0
bash-5.1# docker network ls
NETWORK ID NAME DRIVER SCOPE
eddd48245ab6 bridge bridge local
410456b84d13 host host local
59e8740b2061 none null local
so the TLS Docker does work fine.
Which OS & Architecture
Running docker:20.10.9-dind together with Alpine-based container with k3d installed
Which version of k3d
bash-5.1# k3d version
k3d version v5.0.1
k3s version v1.21.5-k3s2 (default)
Hi @mkubaczyk , thanks for opening this issue!
Apparently this seemed to work with k3d v4 and we first have to figure out the exact cause that broke this in v5.
However, using (remote) docker with TLS works with docker contexts as per #674.
E.g. as per the PR description: docker context update dindsec --description "dind local secure" --docker "host=tcp://127.0.0.1:3376,ca=/tmp/dockercerts/client/ca.pem,cert=/tmp/dockercerts/client/cert.pem,key=/tmp/dockercerts/client/key.pem" creates a secure context that works with k3d.
What did you do
I'm having Docker with TLS enabled on Gitlab CI:
Then, when running simple cluster creation command:
I'm getting Error like k3d would be ignoring the env vars I'm using to let it know it's via TLS.
What did you expect to happen
k3d should honour these env vars making the docker runtime work via TLS.
Having simple test being run in the same place as the command above, I'm getting:
so the TLS Docker does work fine.
Which OS & Architecture
Which version of
k3d
Which version of docker
The text was updated successfully, but these errors were encountered: