Docker and Kubernetes Installation Steps on Ubuntu

1. 🐳 Install Docker Engine

# Update packages
sudo apt-get update

# Install Docker
sudo apt-get install -y docker.io

# Start & enable Docker
sudo systemctl start docker
sudo systemctl enable docker

# Allow running docker without sudo
sudo usermod -aG docker $USER
newgrp docker

# Verify installation
docker --version
docker run hello-world

2. 📦 Install Docker Compose

sudo apt-get install -y docker-compose
docker-compose --version

3. ⚙️ Install kubectl (Kubernetes CLI)

# Install via Snap (recommended)
sudo snap install kubectl --classic

# Verify
kubectl version --client

4. 🚀 Install Minikube (Local Kubernetes Cluster)

# Download Minikube binary
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64

# Install
sudo install minikube-linux-amd64 /usr/local/bin/minikube

# Verify
minikube version

# Start cluster
minikube start --driver=docker

# Check status
minikube status

5. 🌐 Install .NET SDK (for ASP.NET Core)

# Download Microsoft package repo
wget https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb -O packages-microsoft-prod.deb

# Register repo
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update

# Install .NET 8 SDK
sudo apt-get install -y dotnet-sdk-8.0

# Verify
dotnet --version

6. 💻 Install Visual Studio Code

# Install VS Code via Snap
sudo snap install code --classic

# Verify
code --version

👉 Inside VS Code, install these extensions:

  • Docker (from Microsoft)
  • Kubernetes (by Microsoft)
  • C# Dev Kit (to handle ASP.NET Core projects)

After these steps, your setup is ready for:

  • Building & running containers (docker, docker-compose)
  • Deploying apps on Kubernetes (kubectl, minikube)
  • Running ASP.NET Core projects (dotnet)
  • Coding & managing containers in VS Code.

Scroll to Top