Skip to content

Instantly share code, notes, and snippets.

@willnode
Last active April 14, 2023 03:52
Show Gist options
  • Save willnode/b90e3955e057c92fe2611af4baf64118 to your computer and use it in GitHub Desktop.
Save willnode/b90e3955e057c92fe2611af4baf64118 to your computer and use it in GitHub Desktop.
Installing Docker in Mac with sudo manually
sudo nano /Library/LaunchDaemons/com.docker.vmnetd.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Label</key>
        <string>com.docker.vmnetd</string>
        <key>Program</key>
        <string>/Library/PrivilegedHelperTools/com.docker.vmnetd</string>
        <key>ProgramArguments</key>
        <array>
                <string>/Library/PrivilegedHelperTools/com.docker.vmnetd</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
        <key>Sockets</key>
        <dict>
                <key>Listener</key>
                <dict>
                        <key>SockPathMode</key>
                        <integer>438</integer>
                        <key>SockPathName</key>
                        <string>/var/run/com.docker.vmnetd.sock</string>
                </dict>
        </dict>
        <key>Version</key>
        <string>64</string>
</dict>
</plist>
sudo cp /Applications/Docker.app/Contents/Library/LaunchServices/com.docker.vmnetd /Library/PrivilegedHelperTools/com.docker.vmnetd
sudo launchctl load /Library/LaunchDaemons/com.docker.vmnetd.plist
sudo launchctl start com.docker.vmnetd
sudo mkdir -p /usr/local/lib/docker
sudo ln -s /Applications/Docker.app/Contents/Resources/cli-plugins /usr/local/lib/docker/cli-plugins
sudo ln -s /Applications/Docker.app/Contents/Resources/bin/docker /usr/local/bin/docker 
sudo ln -s /Applications/Docker.app/Contents/Resources/bin/kubectl /usr/local/bin/kubectl 
/Applications/Docker.app/Contents/MacOS/com.docker.diagnose check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment