Skip to content

Commit

Permalink
clarify usage of magic home
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Dolitsky <josh@dolit.ski>
  • Loading branch information
jdolitsky committed Aug 3, 2021
1 parent 8385cb0 commit 2bab4f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ This is equivalent to the following on each operating system:
- Windows: `%APPDATA%\magic\etc`

`magic` has a useful subcommand, `init`, which will auto-create this directory
and populate it with the default mappings files:
and populate it with the default mappings files, as well as a catch-all
Docker `config.json` file:

```
$ docker-credential-magic init
Expand All @@ -88,7 +89,8 @@ Creating mapping file '/Users/me/Library/Application Support/magic/etc/gcp.yml'
Creating magic config file '/Users/me/Library/Application Support/magic/config.json' ...
```

Next, modify the `DOCKER_CONFIG` env var to point to the magic directory:
`magic` has another subcommand, `home`, which you can use to
modify the `DOCKER_CONFIG` env var to point to the magic directory:

```
$ export DOCKER_CONFIG="$(docker-credential-magic home)"
Expand Down

0 comments on commit 2bab4f6

Please sign in to comment.