How to convert an ISO to a Docker image
Описание
If you're looking to push your container game a bit, you can also convert your own ISOs (or ISOs you trust) into Docker Images. Jack Wallen shows you how.
For the full step-by-step article, head to https://www.techrepublic.com/article/how-to-convert-an-iso-to-a-docker-image/
List of Commands:
sudo apt-get install squashfs-tools -y
sudo apt-get install docker.io -y
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -aG docker $USER
newgrp docker
mkdir rootfs unsquashfs
sudo mount -o loop ~/Downloads/ubuntu-20.04-live-server-amd64.iso ~/rootfs
cd ~/rootfs
find . -type f | grep filesystem.squashfs
cd ~/
sudo unsquashfs -f -d unsquashfs/ rootfs/casper/filesystem.squashfs
sudo tar -C unsquashfs -c . | docker import - IMAGENAME/TAG
docker images
Watch more How To videos: https://www.youtube.com/channel/UCKyMiy1zmJ7aZ8aP6DLZLIA/
Watch more TechRepublic videos: https://www.techrepublic.com/videos/
Follow TechRepublic on Twitter: http://twitter.com/TechRepublic/
Follow TechRepublic on Facebook: http://www.facebook.com/TechRepublic/
Follow TechRepublic on Instagram: https://www.instagram.com/TechRepublic/
Follow TechRepublic on LinkedIn: https://www.linkedin.com/company/tech...
Watch Tech Stories, a series of mini documentaries from TechRepublic: https://www.youtube.com/watch?v=RRPAs...
Video Editor: https://www.techrepublic.com/meet-the-team/us/mackenzie-burke/
Рекомендуемые видео

















