Skip to content

Commit

Permalink
readme: add example
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
  • Loading branch information
sebastian-philipp committed Dec 4, 2020
1 parent dac31fe commit e877adb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
registries-conf-ctl. A CLI tool to modify
/etc/registries/registries.conf. Also supports Docker's daemon.json

**NOTE**: At this point, this tool only allows adding mirror registries.

```
Usage:
registries-conf-ctl [options] add-mirror <registry> <mirror> [--insecure] [--http]
Expand All @@ -25,6 +27,15 @@ Install directly from github like so:
pip install git+https://github.com/sebastian-philipp/registries-conf-ctl
```

# Example

Add a new mirror for docker.io:

```bash
registries-conf-ctl add-mirror docker.io <my-mirror>
systemctl restart docker
```

# Q & A

### If `docker` and `podman` commands are both detected, will the tool modify both config files?
Expand Down

0 comments on commit e877adb

Please sign in to comment.