Showing posts with label docker runtime. Show all posts
Showing posts with label docker runtime. Show all posts

Container Optimized OS | Photon OS | Docker Engine Pre-Installed | How to Install and configure

 What is Container Optimized OS

A Container Optimized OS is a lightweight, minimalistic operating system designed specifically to run containerized applications efficiently. Any operating system which is pre-installed or equipped with Container Runtime Environment just like Docker is called Container optimized OS. Some Simple Examples are 

  • Photon-OS (You can Download)
  • Microsoft Windows 10 Pro and onwards
  • Google Container-Optimized OS (COS)
  • Bottlerocket (by AWS)

The only thing you need is to just turn on the feature of OS and you are good to go with that feature utilization. Just like you can turn on Docker in Microsoft Windows 10 through Programs and features and you can use. Similarly, Photon-OS is a flavored Linux owned by VMware which is already equipped with Docker runtime.

About Photon-OS

So lets talk about Photon OS which is actually the base-line for all VMware Appliances. Its a flavored Linux (Open Source and is named as project photon OS) owned by VMware and now is used in all the appliances used or offered by VMware Some I can mention down below 

  1. vCenter Server Appliance
  2. VMware Aria Family
  3. NSX
  4. VCF
  5. VMware Horizon
  6. Workspace Once Access (VMware Identity Manager)

VMware openly welcomes open-source contribution to this OS that you can see here

You can also mention some other appliances (in the comments below) which I forgot to mention. With the help of Photon-OS it lowered the cost of Licensing for VMware product line which was because of OS licenses 

Current version of Photon OS is now available as Photon OS 5. This open source minimalistic Linux OS from VMware is available to download and is used for Containerized Application, vSphere ESXi optimized VMs and Cloud native platform optimized Applications. You can access its documentation for Installation and Administration.

Benefits and Features

Photon OS v5 is now available to Download and having different capabilities. It is available for different environment like Google Cloud, AWS, Azure and vSphere. Some of the capabilities I am mentioning down here

  • It supports ARM64 for the linux ESX kernel Flavor most suiatable for vSphere 8 and NSX in combination to DPU (Data Processing Unit)
  • It allows Live Patching, which means if you update the OS with patches that directly affect Kernel and require to restart the OS then No need to restart the OS but Kernel updates can be done. (Ref: Github What's New in Photon-OS 5)
  • Administrators can seamlessly perform tasks like configuring multiple routes and addresses section, configuring Wire Guard and SRIOV.
Moreover, Photon-OS 5 is available for different environments and flavors depending on your needs and requirements
  • Linux – the generic kernel flavor  (Main OS Flavor)
  • Linux-ESX – linux kernel tuned for VMware Hypervisor and used by CRX and POD VMs 
  • Linux-secure – Security-hardened kernel for deployments on Edge  
  • Linux-rt – linux kernel tuned for Low latency uses cases and used by Telco VRAN appliances, including optimizations, stability enhancements, and Intel Sapphire Rapids CPU support.  

Microsoft Windows Environments 


Microsoft Windows versions those support Docker Desktop are as below which means you need to install docker just like any application feature available "Programs and Features"

  • Microsoft Windows 10 Professional
  • Microsoft Windows 11 Professional Or Enterprise Editions

Whereas "Home" and "Education" edition only support Linux containers not windows for more information you can visit here and can download manually "Docker for Desktop". 

Moreover, Microsoft Server Edition doesn't support Docker for Desktop such as

  • Microsoft Windows Server 2019
  • Microsoft Windows Server 2022

For more information on Docker for Desktop I have already written a lot and got some hands-on demonstration available at my YouTube Channel. Below is my blogpost you can directly access

Deploying Docker Runtime on top of Microsoft Windows OS or you can watch Demonstration 

Do join me and Subscribe here to have more useful information and do share your comments here. Your comments are valuable asset to me 


Installing Docker (Engine) | (CRT) | Container Run-Time | Docker Desktop

 To my dear Readers! Greetings!!

Now, we are in a position to understand containerization in a better way. Keeping this concept of containerization, lets start our first installation of container Engine. At first, you need to download docker desktop which is available online and can easily be downloaded. 

Basic Understanding (High-level overview)

At this point we shall download it for Windows 10. And, by the way there is a difference in Docker Engine and docker desktop. 

Docker desktop is a complete package (including Docker Engine, Docker CLI client, Docker Compose, Notary, Kubernetes, and Credential Helper) as you can see above in picture. 

You can download and install in your relevant OS environment (Mac / Windows). Its architecture is pretty straight forward and easily understandable. Docker Desktop for two different environments available. It is going to cater both kind of container apps (meant to) run on Linux or Microsoft Windows. It is available in two flavors 

1. Docker Desktop on Mac

2. Docker Desktop on Windows

Whereas, Docker Engine can be installed on Linux flavors like Centos, Debian, Fedora etc.

Before you Install Docker Desktop

  • Download docker desktop of your choice and be sure for environment requirements including OS and H/W both.
  • In my case, I'm downloading docker desktop for windows.

  • Windows 10 64-bit: Pro, Enterprise, or Education (Build 17134 or higher).
    • Hyper-V and Containers Windows features must be enabled.
    • The following hardware prerequisites are required to successfully run Client Hyper-V on Windows 10:
    • 64 bit processor with Second Level Address Translation (SLAT)
    • 4GB system RAM
    • BIOS-level hardware virtualization support must be enabled in the BIOS settings. For more information, see Virtualization and other troubleshooting for docker configurations.

    High level Installation Steps

    1. Double-click Docker Desktop Installer.exe to run the installer.

    2. If you haven’t already downloaded the installer (Docker Desktop Installer.exe), you can get it from Docker Hub. It typically downloads to your Downloads folder, or you can run it from the recent downloads bar at the bottom of your web browser.

    3. When prompted, ensure the Enable Hyper-V Windows Features or the Install required Windows components for WSL 2 option is selected on the Configuration page.
    Note: Follow the instructions on the installation wizard to authorize the installer and proceed with the install.

    When the installation is successful, click Close to complete the installation process.

    Important: 
    If your admin account is different to your user account, you must add the user to the docker-users group. Run Computer Management as an administrator and navigate to Local Users and Groups > Groups > docker-users. Right-click to add the user to the group. Log out and log back in for the changes to take effect.

          Starting up Docker Desktop 

          Docker Desktop does not start automatically after installation. To start Docker Desktop, search for Docker, and select Docker Desktop in the search results if your windows environment just as you can see in the picture below


          You only need to check whale icon right after initialization of your Docker Desktop as you can see in picture below




          And, if it stays in the status bar after you just verified there then it means docker desktop service is running on the system properly and you have complete the installation process of docker desktop on your Microsoft Windows OS and docker desktop launches onboarding tutorial. 

          The tutorial includes a simple exercise to build an example Docker image, run it as a container, push and save the image to Docker Hub as shown below


          And two thumbs up(👍👍) , you have successfully installed docker desktop on Microsoft Windows.

          Stay tuned for next Session ... "Container Optimized OS.."

          Go back to previous post




          Container Optimized OS | Photon OS | Docker Engine Pre-Installed | How to Install and configure

           What is Container Optimized OS A Container Optimized OS is a lightweight, minimalistic operating system designed specifically to run contai...