From d306f6c19d4e7e915503be9a3727d1012d182885 Mon Sep 17 00:00:00 2001 From: Craig Osterhout <103533812+craig-osterhout@users.noreply.github.com> Date: Wed, 27 Jul 2022 13:03:44 -0700 Subject: [PATCH] add quotes around directory with spaces (#15215) --- _includes/configure-registry-json.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_includes/configure-registry-json.md b/_includes/configure-registry-json.md index 2e0a3b3b6a..20b5bf1c3f 100644 --- a/_includes/configure-registry-json.md +++ b/_includes/configure-registry-json.md @@ -83,8 +83,9 @@ $ sudo hdiutil detach /Volumes/Docker To manually create a `registry.json` file, run the following commands in a terminal and replace `myorg` with your organization's name. ```bash -$ sudo touch /Library/Application Support/com.docker.docker/registry.json -$ sudo echo '{"allowedOrgs":["myorg"]}' >> /Library/Application Support/com.docker.docker/registry.json +$ sudo mkdir -p "/Library/Application Support/com.docker.docker" +$ sudo touch "/Library/Application Support/com.docker.docker/registry.json" +$ sudo echo '{"allowedOrgs":["myorg"]}' >> "/Library/Application Support/com.docker.docker/registry.json" ``` This creates the `registry.json` file at `/Library/Application Support/com.docker.docker/registry.json` and includes the organization information the user belongs to. Make sure this file can't be edited by the user, only by the administrator.