mysql - Mounting container volume from the hosts' drive? -


im setting mysql container so:

docker run -v /srv/information-db:/var/lib/mysql tutum/mysql /bin/bash -c "/usr/bin/mysql_install_db"

now, works when nothing mounted on /srv on host, when mount drive, docker seems write underlying filesystem (/), eg:

/]# ls -l /srv total 0 /]# mount /dev/xvdc1 /srv /]# mount ... /dev/xvdc1 on /srv type ext4 (rw,relatime,seclabel,data=ordered)  /]# docker run -v /srv/information-db:/var/lib/mysql tutum/mysql /bin/bash -c "/usr/bin/mysql_install_db"  /]# ls -l /srv total 16 drwx------. 2 root root 16384 apr 22 18:05 lost+found /]# umount /dev/xvdc1 /]# ls -l /srv total 4 drwxr-xr-x. 4 102 root 4096 apr 22 18:24 information-db 

anyone seen behaviour / have solution? cheers

i've seen that. try perform stat -c %i checks both inside host , container before , after mount event (in order inode values of target dirs). guess they're mismatched reason when mount external device.


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -