Error: Invalid usage: unknown subcommand: `docder` xiaohei@xiaoheideMacBook-Pro ~ % brew services start docder Error: No available formula with the name "docder". Did you mean docker? xiaohei@xiaoheideMacBook-Pro ~ % sudo brew services start docder Error: No available formula with the name "docder". Did you mean docker? xiaohei@xiaoheideMacBook-Pro ~ % sudo brew services restart docder Error: No available formula with the name "docder". Did you mean docker? xiaohei@xiaoheideMacBook-Pro ~ % docker -v Docker version 24.0.2, build cb74dfcd85 xiaohei@xiaoheideMacBook-Pro ~ % sudo brew services restart docder Error: No available formula with the name "docder". Did you mean docker? xiaohei@xiaoheideMacBook-Pro ~ % sudo brew services list Name Status User File nginx started root /Library/LaunchDaemons/homebrew.mxcl.nginx.plist php@7.4 started root /Library/LaunchDaemons/homebrew.mxcl.php@7.4.plist xiaohei@xiaoheideMacBook-Pro ~ % sudo brew services docker Usage: brew services [subcommand] Manage background services with macOS' launchctl(1) daemon manager. If sudo is passed, operate on /Library/LaunchDaemons (started at boot). Otherwise, operate on ~/Library/LaunchAgents (started at login). [sudo] brew services [list] (--json): List information about all managed services for the current user (or root). [sudo] brew services info (formula|--all|--json): List all managed services for the current user (or root). [sudo] brew services run (formula|--all): Run the service formula without registering to launch at login (or boot). [sudo] brew services start (formula|--all|--file=): Start the service formula immediately and register it to launch at login (or boot). [sudo] brew services stop (formula|--all): Stop the service formula immediately and unregister it from launching at login (or boot). [sudo] brew services kill (formula|--all): Stop the service formula immediately but keep it registered to launch at login (or boot). [sudo] brew services restart (formula|--all): Stop (if necessary) and start the service formula immediately and register it to launch at login (or boot). [sudo] brew services cleanup: Remove all unused services. --file Use the service file from this location to start the service. --all Run subcommand on all services. --json Output as JSON. -d, --debug Display any debugging information. -q, --quiet Make some output more quiet. -v, --verbose Make some output more verbose. -h, --help Show this message. Error: Invalid usage: unknown subcommand: `docker` xiaohei@xiaoheideMacBook-Pro ~ % brew services restart docker Error: Formula `docker` has not implemented #plist, #service or installed a locatable service file xiaohei@xiaoheideMacBook-Pro ~ % docker ps Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? xiaohei@xiaoheideMacBook-Pro ~ % docker images Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? xiaohei@xiaoheideMacBook-Pro ~ % brew services start docker Error: Formula `docker` has not implemented #plist, #service or installed a locatable service file xiaohei@xiaoheideMacBook-Pro ~ % 帮我看下错误
时间: 2024-02-14 14:10:53 浏览: 29
根据你的命令行输出,发现你的问题是与 Docker 相关的,具体来说,你无法启动 Docker 服务。错误信息提示说无法连接到 Docker 守护进程,因此需要先启动 Docker 服务,然后再尝试使用 docker 命令。你可以尝试使用以下命令启动 Docker 服务:
```
sudo brew services start docker
```
如果仍然提示 Formula `docker` has not implemented #plist, #service or installed a locatable service file,则可以尝试卸载并重新安装 Docker,具体方法可以参考 Docker 的官方文档。
相关问题
Error: invalid option: --with-unixodbc cc@ccdeMacBook-Pro ~ % brew install freetds --with-unixodbc
这个错误提示意味着你使用了一个无效的选项 `--with-unixodbc`,它可能已经被删除或者不再受支持。
在 Homebrew 中,默认情况下不再支持使用选项来构建公式。相反,Homebrew 会尝试自动检测系统中已安装的库和依赖项,并使用它们来构建公式。
如果你需要使用特定的选项来构建公式,你可以尝试使用 Homebrew 提供的 `--build-from-source` 选项,如下所示:
```
brew install freetds --build-from-source --with-unixodbc
```
`--build-from-source` 选项会强制 Homebrew 从源代码构建公式,而不是使用预编译的二进制文件。这有助于确保使用正确的选项来构建公式。
希望这可以帮助你解决问题。
Error: invalid option: --with-unixodbc
这个错误提示意味着你使用了一个无效的选项 `--with-unixodbc`,它可能已经被删除或者不再受支持。
在 Homebrew 中,默认情况下不再支持使用选项来构建公式。相反,Homebrew 会尝试自动检测系统中已安装的库和依赖项,并使用它们来构建公式。
如果你需要使用特定的选项来构建公式,你可以尝试使用 Homebrew 提供的 `--build-from-source` 选项,如下所示:
```
brew install freetds --build-from-source --with-unixodbc
```
`--build-from-source` 选项会强制 Homebrew 从源代码构建公式,而不是使用预编译的二进制文件。这有助于确保使用正确的选项来构建公式。
希望这可以帮助你解决问题。