Why Containers ?

  • For packaging and running applications across diverse environments on-prem or cloud
  • lightweight, isolated environment — easy to develop, deploy and manage.
  • quick start/stop
  • useful for utilizing your infrastructure

Windows containers running on Windows Server default to running with process isolation.

  • Process Isolation — This is the “traditional isolation” for containers. Containers instances run with isolation provided through namespace, resource control and process isolation technologies. Containers share same kernel with host as well as with each other (same as how linux containers run).
docker run -it --isolation=process mcr.microsoft.com/windows/servercore:ltsc2016 cmd
  • Hyper-V Isolation — This isolation mode offers enhanced security and broader compatibility…

Many times we have the requirement to use an existing domain with our Azure Active Directory. Following step by step guide will help you to configure your Azure Active Directory service for use with a custom domain name registered with an external domain registrar.

Step 1: Login to Azure Portal

Step 2: Select Azure Active Directory service for your Azure Account

Step 3: Select Custom domain names

Step 4: Click Add custom domain

Step5: Enter your domain name

Step 6: Click Add domain

Step 7: Now, in order to use the domain with your Azure AD, create a new TXT…


Kubernetes Basics

Using minikube to create a single node cluster

minikube cli screenshot
minikube cli screenshot
minikube version
minikube start
kubectl version
kubectl cluster-info
kubectl get nodes
kubectl create deployment kubernetes-bootcamp --image=gcr.io/google-samples/kubernetes-bootcamp:v1
kubectl get deployments
kubectl get podskubectl get pods -o wide
kubectl describe pods
kubectl logs $POD_NAME
kubectl exec $POD_NAME env
kubectl exec -ti $POD_NAME bash

To close your container connection type exit.

kubectl get services
kubectl expose deployment/kubernetes-bootcamp --type="NodePort" --port 8080
kubectl describe services/kubernetes-bootcamp
curl $(minikube ip):$NODE_PORT
kubectl get pods -l run=kubernetes-bootcamp
kubectl get services -l run=kubernetes-bootcamp
kubectl label pod $POD_NAME app=v1
kubectl delete service -l run=kubernetes-bootcamp
kubectl scale deployments/kubernetes-bootcamp --replicas=4
kubectl scale deployments/kubernetes-bootcamp --replicas=2


Fix HNS Related errors

To fix HNS Related errors, Clean Up Windows Server 2016 Host networking configuration

Run following script provide by Microsoft in PowerShell as admin to cleanup your Windows Host (Read the instructions carefully before running this script provided by Microsoft)

(Optionally) Clean Up your host manually -
Run following commands on an administrator PowerShell console :

# MAKE SURE HOST IS NOT IN SWARM MODE
docker swarm leave --force
# removes all container networks on the system.
docker network prune -f
# removes all containers on the system.
docker container prune -f
# stop docker service
net stop docker
# clean…

Basic docker commands for beginners

Practice these commands yourself, get your hands dirty check out this Hands On YouTube video demonstrating these commands -

  1. Check Docker Version
docker version

2.Check the detailed information of Docker installed

docker info

Docker commands — Images

3. Search an image in Docker hub

docker search <<imagename>> | head -20docker search ubuntu | head -20
# will search ubuntu images in the dockerhub and limit the search result to only 20

Note: head command works on bash terminal, for PowerShell terminal in windows use select -first 10

docker search ubuntu | select -first 10

4. Pull and Image from Docker hub

docker…


Recently I was learning docker on Windows Server 2016 and I realized that official docker docs no longer have information for Docker EE on Windows Server 2016

Microsoft official documentation link for scripted installation of Docker EE is broken.

Ashish Singh Baghel

Digital Enthusiast

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store