Docker-kitchen 'mount -o loop *.iso /mnt/iso/' throws 'could not find any device /dev/loop#'

I have the following in .kitchen.yml (docker is the driver):
platforms:

  • name: centos5.11
    driver_config:
    privileged: true

But ‘mount -o loop linux.iso /mnt/iso/’ in a recipe during kitchen converge failed with following error:

STDERR: mount: could not find any device /dev/loop#

Any ideas how to fix it?

That should just be driver: I think, not driver_config:. You can always use kitchen diagnose to look at the compiled configuration for an instance, in this case to check that the right driver flags are set.

coderanger,

It’s the same error with the following:

driver:
name: docker
privileged: true

I don’t see anything in kitchen diagnose that’d help trouble-shooting this.