简体   繁体   中英

Extract httpd.conf from Apache2 in Docker container

I want to extract the default httpd.conf file from Apache2 inside a running Docker container so that I can customize it. I have found plenty of examples to help me going the other way but nothing that helps me going in this direction.

you can copy it from container:

docker cp containername:/etc/apache2/apache2.conf .

and return it to the container:

docker cp apache2.conf containername:/etc/apache2/apache2.conf

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM