Friday 15 April 2011

mysql - How to "undeclare" volumes in docker image? -



mysql - How to "undeclare" volumes in docker image? -

i writing dockerfile setting image testing web application. basing on tutum/lamp image (https://github.com/tutumcloud/tutum-docker-lamp/blob/master/dockerfile) because seems base of operations start from.

as part of dockerfile, want create mysql database , set stuff in it. however, tutum/lamp image declares volume ["/etc/mysql", "/var/lib/mysql" ], if understand correctly, changes create mysql database in dockerfile not persisted.

do understand correctly?

if yes,

is there way "undeclare" volumes directories part of union file scheme else?

thanks!

you can't undeclare volume, can build own version of original image modifying it's dockerfile.

mysql docker

No comments:

Post a Comment