Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To specify a customized docker socket address in k3d, you can use the K3S_EXTRA_ARGS environment variable along with the K3S_KUBECONFIG_MODE=777 option. For example:

export K3S_EXTRA_ARGS="--docker --docker.endpoint=unix:///path/to/custom/docker.sock"
k3d cluster create mycluster --k3s-server-arg $K3S_EXTRA_ARGS --k3s-server-env K3S_KUBECONFIG_MODE=777

This will create a new k3d cluster named mycluster with k3s server configuration that includes the specified customized docker socket endpoint.