docker fails to mount from CIFS mounted host directory

My setup is as follows: on the host machine I have cifs share mounted and working fine -> I can read/write etc at mnt/mydir. I am trying to mount this directory when running my docker container using -v /mnt/mydir:/mnt/mydir.

The mounting itself seems to go just fine and even when I use docker inspect the mounted directory is listed as expected. However when I go to /mnt/mydir inside my container, the directory is empty. I am also mounting a couple other directories in my container but these are local on the host machine and everything there works fine – I can see the files inside the container, read, write etc. Obviously the problem is with the cifs share.

  • Docker does not run cron job files with external origin (host - windows)
  • Why so many layers on base images? Docker
  • Docker Registry 2.0 with Amazon S3 and TLS setup
  • how to export VM (VirtualBox) to tgz archive?
  • Eliminate mess with docker swarm mode loadbalancer, consul and external load balancer
  • docker nginx load balancing not working with Azure
  • What is interesting is that this mounting used to work fine, but after the servers got restarted (the docker host & the server where the shared dir resides) the mounting is no longer working. Another interesting thing is that the inode of /mnt/mydir on the host is different from the inode of /mnt/mydir inside the container… I tried starting/stopping the container, deleting it and making a new one, deleting the image loading it to docker again and creating a new container, deleting dangling images, but no luck…

    Any ideas what might be wrong would be very appreciated !
    P.S the host system is CentOS 6.6 and docker 1.11

  • docker-machine - Error attempting heartbeat call to plugin server: connection is shut down
  • Issues accessing Sinatra app in Docker container
  • Bitnami and Docker
  • Dockerize Spring Boot Java app with Kafka, Zookeeper, and MongoDB [closed]
  • installing ssh in the docker containers
  • c#/Mono solution not building on remote Dokku server
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.