@ONTHROYD
-kabeh kuwi sawang sinawang-
Home About me
Home Convert images.iso to docker images
Search …
Convert images.iso to docker images
CALENDER
September 24, 2015 onthroyd Linux Docker September 2015
M T W T F S S
If you must use an ISO here is the process required (I’m using Ubuntu in this
1 2 3 4 5 6
example). Other distro’s milage might vary…
Privacy &#Cookies:
mkdir Thisrootfs
site uses cookies. By continuing to use this website, you agree to their use.
7 8 9 10 11 12 13
Close and accept
# sudo mount -o loop /vagrant/ubuntu-14.10-server-amd64.iso rootfs
To find out more, including how to control cookies, see here: Cookie Policy
14 15 16 17 18 19 Follow
20
# sudo apt-get install -y squashfs-tools
21 22 23 24 25 26 27
# mkdir unsquashfs
# sudo unsquashfs -f -d unsquashfs/ rootfs/install/filesystem.squashfs 28 29 30
# sudo tar -C unsquahsfs -c . | docker import – rich/mybase
For other distro’s that are not in squashfs format you have to find the LiveCD file and « Jul Jun »
unpack it before creating the Docker image.
RECENT POSTS
Share this:
Restore for Omnibus GitLab installations
Twitter Facebook Docker – How to cleanup
(unused) resources
Like
Be the first to like this.
Update to Centos 7 libpcre.so.0 No such
file or directory
Increase size root on Container
Convert images.iso to docker images
How to Upgrade Linux Kernel to Stable 3.18.4 on CentOS 7.x Increase size root on Container
CATEGORIES
Docker
Kuliner
Linux
One thought on “Convert images.iso to Uncategorized
docker images”
ARCHIVES
January 2019
andri :)
June 2017
September 24, 2015 at 5:43 pm
September 2015
July 2012
for centos 7 :
yum -y install squashfs-tools INSTAGRAM
mkdir rootfs
mount -o loop /root/CentOS-7-x86_64-DVD-1503-01.iso rootfs
mkdir unsquashfs
unsquashfs -f -d unsquashfs/ rootfs/LiveOS/squashfs.img
tar -C unsquashfs -c . | docker import – andri/centos7
docker images
[root@njajal ~]# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
andri/centos7 latest c46c8cac1577 4 minutes ago 2.147 GB
Reply
Leave a Reply
Enter your comment here...
Blog at WordPress.com. Do Not Sell My Personal Information