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

  • Cannot connect to wss://ip:5063 when deploy restcomm docker to public server
  • Efficiently using multiple docker containers in a single host
  • Error Connecting to Docker hub
  • ping returns unknown host
  • Checking reason behind node failure
  • How to mount host directory in docker container using remote api
  • 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?

  • Use docker build step plugin in Jenkins docker container
  • Docker: how to force graylog web interface over https?
  • How to run a database independent of a Rails app?
  • Cannot trace error in python pcapy wrapper
  • Docker and securing passwords
  • File locks support in Docker volumes of NFS4 shares
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.