I created and pushed to Bluemix an image wp-mysql
with the following Dockerfile
FROM mysql
ADD wordpress.sql /docker-entrypoint-initdb.d/wordpress.sql
I created a volume
sudo bluemix ic volume-create mysqlvolume
And now try to deploy a Bluemix container from that image using
sudo bluemix ic run -it -m 256 --volume mysqlvolume:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=whatever --name wp-mysql registry.eu-gb.bluemix.net/whatever/wp-mysql-image-in-Bluemix
But I get
chown: changing ownership of '/var/lib/mysql/': Permission denied
I think it's related to this case, but I don't know how to map the solution to my case.