Data volumes with Docker on CentOS 6.5 host now working

Trying to mount some data volume from another container failed on CentOS 6.5.

Here are the steps to reproduce:

  • Docker and Cloudera Quick start: How to run own jar-file?
  • docker-machine create error … VBoxManage: error: Unknown option: --synthcpu
  • How to pass an environment variable into a RUN command
  • Links between service Rancher Server 1.0.0
  • Pycharm not showing all files from django external library
  • Docker Remote API filters: filter out network by name
  • [me@loco tmp]$ docker run -d --name just-volume -v /foobar busybox:latest echo DONE
    [me@loco tmp]$ docker ps -a
    CONTAINER ID        IMAGE                       COMMAND             CREATED             STATUS                     PORTS               NAMES
    77f58837be52        busybox:buildroot-2014.02   echo DONE           6 seconds ago       Exited (0) 5 seconds ago                       just-volume         
    [me@loco tmp]$ docker run -i -t --volumes-from just-volume busybox:latest /bin/sh
    lxc-start: No such file or directory - failed to mount '/var/lib/docker/vfs/dir/d9a4f2a981ebc2b26f5dd314c2ac14624c4b79de21c32828fce53bbbb7921431' on '/usr/lib64/lxc/rootfs///foobar'
    lxc-start: failed to setup the mount entries for 'd25071e0c976d094709062ee434d1c5d0a5be17c6c35308511bbb46ca718adea'
    lxc-start: failed to setup the container
    lxc-start: invalid sequence number 1. expected 2
    lxc-start: failed to spawn 'd25071e0c976d094709062ee434d1c5d0a5be17c6c35308511bbb46ca718adea'
    lxc-start: The container failed to start.
    lxc-start: Additional information can be obtained by setting the --logfile and --log-priority options.

    The output from various version commands:

    [me@loco tmp]$ uname -a
    Linux loco 2.6.32-431.23.3.el6.x86_64 #1 SMP Thu Jul 31 17:20:51 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
    [me@loco tmp]$ docker version
    Client version: 1.1.2
    Client API version: 1.13
    Go version (client): go1.2.2
    Git commit (client): d84a070/1.1.2
    Server version: 1.1.2
    Server API version: 1.13
    Go version (server): go1.2.2
    Git commit (server): d84a070/1.1.2
    [me@loco tmp]$ docker -D info
    Containers: 2
    Images: 21
    Storage Driver: devicemapper
     Pool Name: docker-8:2-1705787-pool
     Data file: /var/lib/docker/devicemapper/devicemapper/data
     Metadata file: /var/lib/docker/devicemapper/devicemapper/metadata
     Data Space Used: 1504.8 Mb
     Data Space Total: 102400.0 Mb
     Metadata Space Used: 1.7 Mb
     Metadata Space Total: 2048.0 Mb
    Execution Driver: lxc-1.0.5
    Kernel Version: 2.6.32-431.23.3.el6.x86_64
    Debug mode (server): false
    Debug mode (client): true
    Fds: 11
    Goroutines: 10
    EventsListeners: 0
    Init SHA1: 808ba4d09a4b931f5f745154bea886f252a1aef4
    Init Path: /usr/libexec/docker/dockerinit
    Sockets: [unix:///var/run/docker.sock]

    I also reported this as an issue on GitHub:

    Anyone with similar issue or perhaps a solution?

  • Docker registry:2.0 overriding configuration options
  • Docker project structure with submodules
  • PHP api requests outgoing IP on docker swarm & HAproxy
  • Redis keys melting and not adding up
  • Installing imagemagick in docker container
  • How to let Docker containers broadcast their IP addresses or hostnames to each other?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.