How can I setup Kubernetes in Docker programatically?

6/9/2021

I know that in Docker Desktop I can setup "Enable Kubernetes":

enter image description here

But what I'm looking for is to do that programmatically. I want (by code) to start a Docker and within it to run some small Kubernetes single-node cluster. The goal is to be able to run some testing code that we can run in CI. How can this be done?

-- Slava
docker
kubernetes

0 Answers