|
@@ -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.
|