Laravel 8: docker 请求访问被拒绝

Laravel 8: docker pull access denied

我正在尝试在我的机器上安装 Laravel 8,但 运行 遇到了问题。 当我尝试从 linux shell 运行 命令 curl -s https://laravel.build/example-app | bash 时,我收到错误:

Unable to find image 'and:latest' locally
docker: Error response from daemon: pull access denied for and, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

Get started with: cd example-app && ./vendor/bin/sail up

逻辑上该目录保持为空,因为它无法下载任何内容。 我尝试登录 docker 但这产生了同样的错误。 我已经按照 中列出的其他用户接受的答案进行操作,但这并没有解决问题。

您是否知道如何解决此问题以便我可以继续安装 laravel?

这里的问题是您执行命令的文件夹路径中的空格。

Unable to find image 'and: latest' locally

您可能有一个名为 "X and Y" 的文件夹,这就是为什么它需要 "and: latest" 解决此问题的一种方法是从文件夹中删除空格,这将解决将来其他潜在的麻烦。

另一种方法是复制 https://laravel.build/example-app 中的所有代码并在 "$(pwd):/opt"

周围加上引号

我知道现在回答晚了,但我希望能帮助遇到同样情况的其他人。