Browse Source

Update README.md

master
Ricardo Branco 6 years ago
parent
commit
54ffae3134
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      README.md

+ 7
- 1
README.md View File

@@ -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…
Cancel
Save