我創建並推到Bluemix圖像wp-mysql
具有以下DockerfileBluemix IC運行CHOWN:更改所有權權限被拒絕
FROM mysql
ADD wordpress.sql /docker-entrypoint-initdb.d/wordpress.sql
我創建的卷
sudo bluemix ic volume-create mysqlvolume
現在嘗試部署Bluemix從該圖像使用的容器
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
但是我得到
chown: changing ownership of '/var/lib/mysql/': Permission denied
我認爲這與this case有關,但我不知道如何將解決方案映射到我的案例。