How to write volume from containar by apache

i create web application on container on centos 7.
bad apache can’t write to area by volume in docker-compose.

if this system is real machine , i have to do chown -R apache:apache <directory>,bad i did in container so “no such file”.

HELP!

I solved it.

there are record by way to solve in Dockerfile.

1st. i make ‘set_CMD.sh’

#!/bin/bash

chown apache:apache -R /var/www/html

2nd. i add COPY set_CMD.sh .

3rd. i add RUN sh set_CMD.sh prev CMD /usr/bin/httpd -D FOREGROUND

success !