How to use Kubernetes with Docker
There are only 8 things you need to install to use Kubernetes cluster with Docker.
For this setup I am using Ubuntu 20.04.06 LTS
Step 1: Install Docker. Save the following script as docker.sh
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
sudo usermod -aG docker $USER
newgrp docker
Step 2: Run Docker Script
bash docker.sh
Step 3: Start docker.
service docker start
Step 4: Download Kubectl. Save the following script as kubectl.sh
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
sudo mv kubectl /usr/local/bin/
Step 5: Run the script.
bash kubectl.sh
Step 6: Download Kind. Save the following script as kind.sh
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.27.0/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/
Step 7: Run kind cluster.
kind create cluster
Step 8: Connect with Kubectl.
kubectl get pods
I will try to put all these steps in a video and public once done. Hope you are running your Kubernetes with Docker with Kind.
Kubernetes with Docker with Kind
More from Mutha Nagavamsi¶
Jan 8
Oct 21, 2023
Feb 27, 2025
Jul 24, 2023
Recommended from Medium¶
Ravindran Dharshan## Deploying WSO2 Identity Server on Kubernetes with Helm Chart: Part 1
[
A practical guide to deploying WSO2 Identity Server on Kubernetes using Helm charts.¶
](https://medium.com/@ravindrandharshan/deploying-wso2-identity-server-on-kubernetes-with-helm-d49f8f6b9ebf?source=post_page---read_next_recirc--89afb866c876----0---------------------f3b91f92_4425_409d_826d_97b57bab7163--------------)
Oct 3, 2025203
Engineer Palsu## Exposing Applications with Kubernetes Services (NodePort, LoadBalancer, Ingress)
[
Kubernetes Services are a fundamental concept in Kubernetes, enabling you to expose your applications running within pods to the network…¶
](https://medium.com/@engineerpalsu/exposing-applications-with-kubernetes-services-nodeport-loadbalancer-ingress-b0f4cd500de3?source=post_page---read_next_recirc--89afb866c876----1---------------------f3b91f92_4425_409d_826d_97b57bab7163--------------)
Jan 1
## How to Optimize Docker Images for Faster Builds: A Practical Guide for Node.js Developers
[
If you’ve ever sat there watching Docker build your image for the hundredth time, waiting for those familiar “RUN npm install” lines to…¶
](https://medium.com/aws-in-plain-english/how-to-optimize-docker-images-for-faster-builds-a-practical-guide-for-node-js-developers-cf5d31ec8e74?source=post_page---read_next_recirc--89afb866c876----0---------------------f3b91f92_4425_409d_826d_97b57bab7163--------------)
Oct 13, 2025
Senthil## Day 2: Understanding Kubernetes Architecture
[
— Inside the Cloud-Native Engine¶
](https://medium.com/@senthil262006/day-2-understanding-kubernetes-architecture-f7609666e87b?source=post_page---read_next_recirc--89afb866c876----1---------------------f3b91f92_4425_409d_826d_97b57bab7163--------------)
Oct 5, 202511
Heinan Cabouly## MinIO, Redis, HashiCorp: A Sustainability Crisis Reaching Your Stack in 2026
[
Three major projects changed their open source model. Your dependencies are next. Here’s what September 2026’s compliance deadline means.¶
](https://medium.com/@heinancabouly/minio-redis-hashicorp-a-sustainability-crisis-reaching-your-stack-in-2026-78f9577699cb?source=post_page---read_next_recirc--89afb866c876----2---------------------f3b91f92_4425_409d_826d_97b57bab7163--------------)
6d ago45
[
1
](https://medium.com/@heinancabouly/minio-redis-hashicorp-a-sustainability-crisis-reaching-your-stack-in-2026-78f9577699cb?source=post_page---read_next_recirc--89afb866c876----2---------------------f3b91f92_4425_409d_826d_97b57bab7163--------------)
Mohsen Zainalpour## Production-Ready Mocking: Docker, Kubernetes, and CI/CD
[
Deploy mock services like a pro¶
](https://medium.com/@zainalpour_79971/production-ready-mocking-docker-kubernetes-and-ci-cd-f835db58e208?source=post_page---read_next_recirc--89afb866c876----3---------------------f3b91f92_4425_409d_826d_97b57bab7163--------------)
4d ago5
[
See more recommendations
](https://medium.com/?source=post_page---read_next_recirc--89afb866c876---------------------------------------)



