Do you know why the container would immediately exist when volume is mounted: docker run -i -t -d -p 3306:3306 -v /data/smysql:/var/lib/mysql --name smysql tpires/sonar-mysql