mount docker volume destroy files?

I want access /etc/php5/apache2 in my container, where f.e. php.ini is located.

As soon as I mount my volume…it seems the container can’t write the default php.ini to the apache2 folder, because apache2 folder and config folder on host are empty.

docker config:

  • ./config/:/etc/php5/apache2

I have also tested Z flag without any success. Folder config on host is read/write/excutable by everyone.

Source: StackOverflow