Retry if container rm reports fail

Docker daemon can report that a container rm fails, even though it completes.  This...complicates the driver code.  In the meantime, have a retry!



Macintosh:wp_docker_deploy-cookbook nzook$ boot2docker version
Client version: v1.2.0
Git commit: a551732
Macintosh:wp_docker_deploy-cookbook nzook$ docker version
Client version: 1.2.0
Client API version: 1.14
Go version (client): go1.3.1
Git commit (client): fa7b24f
OS/Arch (client): darwin/amd64
Server version: 1.2.0
Server API version: 1.14
Go version (server): go1.3.1
Git commit (server): fa7b24f

...

   Finished in 0.31451 seconds
   12 examples, 0 failures
   Finished verifying <default-ubuntu-1404> (0m2.22s).
...  (container inspection)
    >>>>>> ------Exception-------
    >>>>>> Class: Kitchen::ActionFailed
    >>>>>> Message: Failed to complete #destroy action: [Expected process to exit with [0], but received '1'
    ---- Begin output of docker -H tcp://192.168.59.103:2375 rm b383a4e3f8cfe8625297ff5fc18fbfb643bbc21eab51b11e1e94653776f7b028 ----
    STDOUT: 
    STDERR: Error response from daemon: Cannot destroy container b383a4e3f8cfe8625297ff5fc18fbfb643bbc21eab51b11e1e94653776f7b028: Driver aufs failed to remove root filesystem b383a4e3f8cfe8625297ff5fc18fbfb643bbc21eab51b11e1e94653776f7b028: rename /mnt/sda1/var/lib/docker/aufs/diff/b383a4e3f8cfe8625297ff5fc18fbfb643bbc21eab51b11e1e94653776f7b028 /mnt/sda1/var/lib/docker/aufs/diff/b383a4e3f8cfe8625297ff5fc18fbfb643bbc21eab51b11e1e94653776f7b028-removing: device or resource busy
    2014/09/16 11:45:36 Error: failed to remove one or more containers
    ---- End output of docker -H tcp://192.168.59.103:2375 rm b383a4e3f8cfe8625297ff5fc18fbfb643bbc21eab51b11e1e94653776f7b028 ----
    Ran docker -H tcp://192.168.59.103:2375 rm b383a4e3f8cfe8625297ff5fc18fbfb643bbc21eab51b11e1e94653776f7b028 returned 1]
    >>>>>> ----------------------
    >>>>>> Please see .kitchen/logs/kitchen.log for more details
    >>>>>> Also try running `kitchen diagnose --all` for configuration

Macintosh:wp_docker_deploy-cookbook nzook$ docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
Macintosh:wp_docker_deploy-cookbook nzook$ docker images
REPOSITORY                             TAG                 IMAGE ID            CREATED             VIRTUAL SIZE