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:

  • Fig volumes don't mount properly
  • How to find Kubernetes pod that's handling the request
  • Lost data docker gitlab on local osx
  • How to use docker-compose with theano image?
  • Creating an ng-cli container in docker not working
  • Kubernetes Autoscaling Containers
  • [me@loco tmp]$ docker run -d --name just-volume -v /foobar busybox:latest echo DONE
    77f58837be52a6fc7dfb24950153fbedc63c1616c7263b77c29299d350fd2722
    [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: https://github.com/docker/docker/issues/7881

    Anyone with similar issue or perhaps a solution?

  • Dockerode : run omxplayer command
  • OpenShift V3: understanding the process with Docker
  • Container delivery on amazon ecs
  • Python inside Docker cannot print unicode without --tty
  • Edit configuration file for running Docker instance of Kong
  • How to enable authentication on MongoDB through Docker?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.