From 2bab4f66924c8c087964c4263edbe4bd214305fc Mon Sep 17 00:00:00 2001 From: Josh Dolitsky Date: Tue, 3 Aug 2021 15:06:12 -0400 Subject: [PATCH] clarify usage of magic home Signed-off-by: Josh Dolitsky --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6d9c3c8..c9dc7e3 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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)"