test-kitchen/test-kitchen — pull request #543 by grubernaut (2014-11-16 22:03:42+00:00)
Title: Sandbox creation fix for docker images

When attempting to converge with community docker images, the image-name
has an extra "/". eg. [this](https://registry.hub.docker.com/u/base/archlinux/) image,
is created with an image name of "default-base/archlinux-latest".

The ruby library Dir, is used to make a local tmpdir as a local sandbox
before being pushed to the image. Since this cannot create tmpdirs
recursively, this fails to create a sandbox with the extra "/" in the
image name.

This fix will ```gsub``` the image name and replace any '/' with '-' for
the sole purpose of creating a sandbox directory. This doesn't change
the actual instance.name variable, and only makes a substitution inside
the "create_sandbox" method.

This still works on official repositories with docker, as well as the
vagrant boxes I have tested this fix with.