Docker Mount an entire mounted host partition as a data volume

My system has two partitions:

5G main partition where Ubuntu is installed
100G side partition at /mnt/data that I’d like to use for Docker container as storage

  • On Bluemix - handling volume for container group instances
  • EADDRNOTAVAIL when Dockerizing Node.js app
  • Why does docker-compose not lookup the IP address from the MySQL container?
  • Bamboo Mesos Marathon
  • Populate cassandra after Docker-compose finishes
  • How do the Docker Swarm Agents tell their IP to the Swarm Manager back?
  • for testing i was create also directory /tmp/mnt
    Also I put test file in both

    touch /tmp/mnt/file
    touch /mnt/data/file
    

    then I start docker images

    sudo docker run -it --rm -v /tmp/mnt:/var/data imagename bash
    sudo docker run -it --rm -v /mnt/data:/var/data imagename bash
    

    in image with /tmp/mnt I see /var/data/file, but in image with /mnt/data not

    both images show same outout for df -h /var/data

    Filesystem      Size  Used Avail Use% Mounted on
    /dev/xvda1      7.8G  5.1G  2.7G  66% /var/data
    

    Does it possible to mount separate partition into docker?

  • what's the data's meaning collected by cadvisor?
  • How to push into gitlab again when the docker-volume or the server data is recreated?
  • Is there an Official Android development environment image on Docker?
  • Docker : Persisting build argument in container during run?
  • Nodejs private module and Docker containers
  • Can not run docker command directly after installation on windows
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.