[Grml] Possible to run grml-debootstrap --vmfile inside docker?

Patrick Schleizer adrelanos at riseup.net
Sat Oct 18 19:50:26 CEST 2014


Hi!

Was playing a bit with docker...

## On the host.
modprobe dm-mod

## Made my own image.
sudo apt-get install debootstrap
sudo -E /usr/share/docker.io/contrib/mkimage.sh -t $USER/minbase
debootstrap --variant=minbase stable

## Run a bash shell within.
sudo docker run -i -t $USER/minbase /bin/bash

## Install modprobbe.
apt-get install kmod

## Test modprobbe.
modprobe dm-mod
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not
open moddep file '/lib/modules/3.16-2-amd64/modules.dep.bin'

Which failed, which is what grml-debootstrap would do.

And without dm-mod, also kpartx will fail.

Cheers,
Patrick



More information about the Grml mailing list