Ask Your Question
4

When using k3d, how can you specify a customized docker socket address?

asked 2023-05-16 18:51:07 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-16 18:56:01 +0000

bukephalos gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-16 18:51:07 +0000

Seen: 16 times

Last updated: May 16 '23