How to solve mounting error when running docker?

I am running docker on an Amazon m2.large instance running Ubuntu 14.04 LTS
(GNU/Linux 3.13.0-24-generic x86_64).

Here is the output of docker info

  • Strange tables in oracle xe
  • Docker Remote API returns 500 error on create container
  • Pushing to private docker registry fails
  • How do I serve Kinto via https from a docker container?
  • How to duplicate container using existing images
  • Push to Dockerhub sends entire image instead of just the changes
  • Containers: 10
    Images: 72
    Storage Driver: devicemapper
     Pool Name: docker-202:16-475138-pool
     Data file: /mnt/docker/devicemapper/devicemapper/data
     Metadata file: /mnt/docker/devicemapper/devicemapper/metadata
     Data Space Used: 2574.9 Mb
     Data Space Total: 102400.0 Mb
     Metadata Space Used: 4.5 Mb
     Metadata Space Total: 2048.0 Mb
    Execution Driver: native-0.2
    Kernel Version: 3.13.0-24-generic
    WARNING: No swap limit support

    Here is the output of docker version:

    Client version: 1.0.1
    Client API version: 1.12
    Go version (client): go1.2.1
    Git commit (client): 990021a
    Server version: 1.0.1
    Server API version: 1.12
    Go version (server): go1.2.1
    Git commit (server): 990021a

    I am running docker as follows:

    docker run \
       --volume /mnt/dir_1:/outputs:rw \
       --volume /mnt/dir_2:/inputs:ro \
       --detach=false \
       --cidfile=/mnt/dir_3/container_id \
       my_image \
       arg_1 \

    However I get the following error:

    2014/07/01 22:26:59 Error response from daemon: Error mounting '/dev/mapper/docker-202:16-475138-e1d927e16afbf1537f66bb0b6f3df56be7160cea7abefe19059aff2c00c55a0a-init' on '/mnt/docker/devicemapper/mnt/e1d927e16afbf1537f66bb0b6f3df56be7160cea7abefe19059aff2c00c55a0a-init': invalid argument

    I already ran this command successfully once and it produced the expected output. Now however it returns this error. How do I solve this? Thanks.

  • Get docker run command for container
  • Kubernetes MySQL replication - Master service host inquiry
  • Log doesn't save to file in docker environment
  • Docker containers and Node.js clusters
  • Lite virtualization of processes
  • How can I run multiple statements using json array format for Docker ENTRYPOINT?
  • One Solution collect form web for “How to solve mounting error when running docker?”

    The solution to this appears to be to move away from the default driver ‘devmapper’ and use the ‘btrfs’ driver which a correspondingly formatted filesystem. An even more performant option, is to use the ‘overlayfs’ driver.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.