瀏覽代碼

Run update.sh

Docker Library Bot 5 年之前
父節點
當前提交
af48c0844d
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      httpd/README.md

+ 7 - 1
httpd/README.md

@@ -82,7 +82,13 @@ $ docker run -dit --name my-apache-app -p 8080:80 -v "$PWD":/usr/local/apache2/h
 
 ### Configuration
 
-To customize the configuration of the httpd server, just `COPY` your custom configuration in as `/usr/local/apache2/conf/httpd.conf`.
+To customize the configuration of the httpd server, first obtain the upstream default configuration from the container:
+
+```console
+$ docker run --rm httpd:2.4 cat /usr/local/apache2/conf/httpd.conf > my-httpd.conf
+```
+
+You can then `COPY` your custom configuration in as `/usr/local/apache2/conf/httpd.conf`:
 
 ```dockerfile
 FROM httpd:2.4