Minggu, 12 November 2023

DOCKER RUN-mount iso

 s there any way to mount an ISO contained in a Docker so that the contents of the ISO are available to the host machine?

I can do this on a Linux host by using a bind mount with shared as the bind propagation setting and then mounting to the shared folder within the Docker.

Starting container:

docker run -v /mnt/myiso:/mnt/myiso:shared --privileged mydocker

Inside container:


==================================================================

[root@gdwdocker ~]# mount -o loop TPLinux-yogya-G964.2.2-07.00.02.iso /mnt/
[root@gdwdocker ~]# docker run -d -p 5900:5900 -p 5901:5901 -p 3389:3389 -v /mnt:/mnt:shared --privileged alexagency/centos6-desktop

[root@41d0f4a14e11 mnt]# ./installall.sh 

install TPLinux (server), logfile is /tmp/installall.log

This is an unknown RedHat-like Linux system. Please ensure to have installed:

j2sdk sqlite rsh-server acroread metamail postgresql and optional mozilla

wish to abort the installation? (n/y

Tidak ada komentar:

Posting Komentar