Update osx-setup-guide.md and com.docker.registry.plist (#4592)

This commit is contained in:
Milos Gajdos
2025-03-09 12:43:12 -07:00
committed by GitHub
2 changed files with 8 additions and 3 deletions

View File

@@ -57,16 +57,20 @@ Copy the registry configuration file in place:
```console
$ mkdir /Users/Shared/Registry
$ cp docs/osx/config.yml /Users/Shared/Registry/config.yml
$ cp docs/content/recipes/osx/config.yml /Users/Shared/Registry/config.yml
```
## Modify ports if needed
MacOS runs an Airplay receiver on port 5000 by default, which is the same port as the registry server. You can either disable the Airplay receiver in _System Settings… > General > AirDrop & Handoff > AirPlay Receiver_, or change the listening ports in the config file that you have just copied to /Users/Shared/Registry/config.yml.
## Run the registry under launchd
Copy the registry plist into place:
```console
$ plutil -lint docs/recipes/osx/com.docker.registry.plist
$ cp docs/recipes/osx/com.docker.registry.plist ~/Library/LaunchAgents/
$ plutil -lint docs/content/recipes/osx/com.docker.registry.plist
$ cp docs/content/recipes/osx/com.docker.registry.plist ~/Library/LaunchAgents/
$ chmod 644 ~/Library/LaunchAgents/com.docker.registry.plist
```

View File

@@ -14,6 +14,7 @@
<string>/usr/local/libexec/registry</string>
<key>ProgramArguments</key>
<array>
<string>serve</string>
<string>/usr/local/libexec/registry</string>
<string>/Users/Shared/Registry/config.yml</string>
</array>