SlideShare a Scribd company logo
Install CentOS in WSL
Install Ubuntu WSL
• Skipped: assume Ubuntu already install in WSL
Open Ubuntu
Install docker
https://docs.docker.com/engine/install/ubuntu/
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo 
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu 
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | 
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
1. Set up Docker’s apt repository
2. Install the Docker packages
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
3. Verify that the Docker Engine installation is successful by running the hello-world image
sudo docker run hello-world
Install CentOS in WSL from docker iso file
Install CentOS in docker
docker pull centos:8.3.2011
1. Run docker daemon
2. Download image
dockerd
3. Check docker centos image id
docker run -it --name centos 300e315adb2f
docker images
4. Run docker centos image container
5. Make sure we already run centos system
cat /etc/os-release
6. Exit docker container
exit
1
2
3
4
5
6
Create CentOS Image for WSL
docker export 23402361436f > /tmp/centos.tar
1. Check CentOS container id
2. Export CentOS container to archive file
docker ps -a
3. Make sure archive (tar) file created
ls -l /tmp
4. Copy archive file to (your liking) Windows directory
1
2
3
4
Import (Install) Image in WSL
Install CentOS in WSL from docker iso file

More Related Content

PDF
docker installation and basics
PDF
Hands-On Session Docker
PPTX
Docker for dev
PDF
The Dockerfile Explosion and the Need for Higher Level Tools by Gareth Rushgrove
PPTX
Docker workshop DevOpsDays Amsterdam 2014
PDF
Lab docker
PDF
ERP System Implementation Kubernetes Cluster with Sticky Sessions
ODP
Docker engine - Indroduc
docker installation and basics
Hands-On Session Docker
Docker for dev
The Dockerfile Explosion and the Need for Higher Level Tools by Gareth Rushgrove
Docker workshop DevOpsDays Amsterdam 2014
Lab docker
ERP System Implementation Kubernetes Cluster with Sticky Sessions
Docker engine - Indroduc

Similar to Install CentOS in WSL from docker iso file (20)

PDF
Rally_Docker_deployment_JumpVM
DOCX
terraform_document installation on linux
DOCX
Dockerfish-Tutorial
PDF
Docker & FieldAware
PDF
Plug-ins: Building, Shipping, Storing, and Running - Nandhini Santhanam and T...
PPTX
Docker workshop
PDF
[Hands-on 필수준비사항] Oracle Developer Meetup 3rd | Jan 27th, 2018
PDF
Использование Docker в CI / Александр Акбашев (HERE Technologies)
PDF
Very Early Review - Rocket(CoreOS)
PPTX
Docker Starter Pack
PPTX
Introction to docker swarm
PDF
Deploying Docker (Provisioning /w Docker + Chef/Puppet) - DevopsDaysPGH
PPTX
Dockerin10mins
PPTX
Dockerin10mins
PPTX
Docker in10mins
PPTX
Docker
PDF
Puppet Camp Chicago 2014: Docker and Puppet: 1+1=3 (Intermediate)
PDF
Docker, c'est bonheur !
PPTX
Introduction to Docker
Rally_Docker_deployment_JumpVM
terraform_document installation on linux
Dockerfish-Tutorial
Docker & FieldAware
Plug-ins: Building, Shipping, Storing, and Running - Nandhini Santhanam and T...
Docker workshop
[Hands-on 필수준비사항] Oracle Developer Meetup 3rd | Jan 27th, 2018
Использование Docker в CI / Александр Акбашев (HERE Technologies)
Very Early Review - Rocket(CoreOS)
Docker Starter Pack
Introction to docker swarm
Deploying Docker (Provisioning /w Docker + Chef/Puppet) - DevopsDaysPGH
Dockerin10mins
Dockerin10mins
Docker in10mins
Docker
Puppet Camp Chicago 2014: Docker and Puppet: 1+1=3 (Intermediate)
Docker, c'est bonheur !
Introduction to Docker
Ad

Recently uploaded (20)

PPTX
Online Work Permit System for Fast Permit Processing
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
Odoo POS Development Services by CandidRoot Solutions
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
System and Network Administraation Chapter 3
PPTX
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
System and Network Administration Chapter 2
PDF
Nekopoi APK 2025 free lastest update
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
Transform Your Business with a Software ERP System
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
ISO 45001 Occupational Health and Safety Management System
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Online Work Permit System for Fast Permit Processing
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Odoo POS Development Services by CandidRoot Solutions
Operating system designcfffgfgggggggvggggggggg
System and Network Administraation Chapter 3
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
Navsoft: AI-Powered Business Solutions & Custom Software Development
System and Network Administration Chapter 2
Nekopoi APK 2025 free lastest update
PTS Company Brochure 2025 (1).pdf.......
How Creative Agencies Leverage Project Management Software.pdf
2025 Textile ERP Trends: SAP, Odoo & Oracle
Transform Your Business with a Software ERP System
CHAPTER 2 - PM Management and IT Context
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
ISO 45001 Occupational Health and Safety Management System
Which alternative to Crystal Reports is best for small or large businesses.pdf
VVF-Customer-Presentation2025-Ver1.9.pptx
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Ad

Install CentOS in WSL from docker iso file

  • 2. Install Ubuntu WSL • Skipped: assume Ubuntu already install in WSL
  • 4. Install docker https://docs.docker.com/engine/install/ubuntu/ # Add Docker's official GPG key: sudo apt-get update sudo apt-get install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc # Add the repository to Apt sources: echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update 1. Set up Docker’s apt repository 2. Install the Docker packages sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin 3. Verify that the Docker Engine installation is successful by running the hello-world image sudo docker run hello-world
  • 6. Install CentOS in docker docker pull centos:8.3.2011 1. Run docker daemon 2. Download image dockerd 3. Check docker centos image id docker run -it --name centos 300e315adb2f docker images 4. Run docker centos image container 5. Make sure we already run centos system cat /etc/os-release 6. Exit docker container exit
  • 8. Create CentOS Image for WSL docker export 23402361436f > /tmp/centos.tar 1. Check CentOS container id 2. Export CentOS container to archive file docker ps -a 3. Make sure archive (tar) file created ls -l /tmp 4. Copy archive file to (your liking) Windows directory 1 2 3 4