소스 검색

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…
취소
저장