瀏覽代碼

Don't declare /dns as a volume.

For letsencrypt-lexicon to extend this, it needs to be able to
place its hook in the right place. If /dns is a volume then it's
auto-created and mounted and any changes made in the Dockerfile are
discarded.
master
Chris Smith 8 年之前
父節點
當前提交
c472d23675
共有 2 個檔案被更改,包括 3 行新增3 行删除
  1. 1
    1
      Dockerfile
  2. 2
    2
      README.md

+ 1
- 1
Dockerfile 查看文件

@@ -9,7 +9,7 @@ RUN apt-get update \
9 9
 COPY letsencrypt.sh run.sh config.sh /
10 10
 RUN chmod +x /run.sh /letsencrypt.sh
11 11
 
12
-VOLUME ["/letsencrypt", "/dns"]
12
+VOLUME ["/letsencrypt"]
13 13
 
14 14
 ENTRYPOINT ["/bin/bash"]
15 15
 CMD ["/run.sh"]

+ 2
- 2
README.md 查看文件

@@ -42,8 +42,8 @@ the update. See the documentation for
42 42
 [letsencrypt.sh](https://github.com/lukas2511/letsencrypt.sh) for details
43 43
 on the arguments it takes.
44 44
 
45
-The container expects an executable at `/dns/hook`, and exposes the 
46
-`/dns` volume for you to mount.
45
+The container expects an executable at `/dns/hook`, so you'll need to
46
+mount the `/dns` folder or `/dns/hook` file when running the container.
47 47
 
48 48
 ### Other configuration
49 49
 

Loading…
取消
儲存