On Ubuntu 16.04 with Docker 17.05.0-ce I try to setup percona-mysql docker image with host directory mapping (volume). Here is image:
docker pull percona/percona-server:latest
And here is container run command:
docker run --name percona -e MYSQL_ROOT_PASSWORD=secret -v /home/myuser/db/files:/var/lib/mysql -p 6603:3306 -d percona/percona-server:latest mysql -h docker_host_ip -P 6603
The problem is that container immediately stop after this command - but when I not use -v ... parameter (volume mapping) then container starts without problems. How to solve this problem?
This problem can potentially also be on mysql or mariadb images.