瀏覽代碼

Update README.md

master
Ricardo Branco 6 年之前
父節點
當前提交
54ffae3134
共有 1 個檔案被更改,包括 7 行新增1 行删除
  1. 7
    1
      README.md

+ 7
- 1
README.md 查看文件

@@ -20,6 +20,12 @@ Options:
20 20
         -V, --version   Show version and exit.
21 21
 ```
22 22
 
23
-## Docker usage:
23
+## Docker usage with local Docker setup
24 24
 
25 25
 `docker run --rm --volumes-from CONTAINER -v /var/run/docker.sock:/var/run/docker.sock ricardobranco/clean_registry [OPTIONS] CONTAINER [REPOSITORY[:TAG]]...`
26
+
27
+## Docker usage with [remote Docker setup](https://docs.docker.com/engine/security/https/#secure-by-default)
28
+
29
+`docker run --rm --volumes-from CONTAINER -e DOCKER_HOST -e DOCKER_TLS_VERIFY=1 -v /root/.docker:/root/.docker ricardobranco/clean_registry [OPTIONS] CONTAINER [REPOSITORY[:TAG]]...`
30
+
31
+Note: Paths other than `/root/.docker` path may be specified with the **DOCKER_CERT_PATH** environment variable.  In any case, your `~/.docker/*.pem` files should be in the server to be able to run as a client against itself.

Loading…
取消
儲存