symfony 5“;“快车道”;当我执行命令时,BookBug docker

symfony 5“;“快车道”;当我执行命令时,BookBug docker,docker,symfony,docker-compose,Docker,Symfony,Docker Compose,我在Ubuntu20上。*我有一本为Symfony5写的书《快车道》(来自FabienPovertier)。 但当我尝试在下面执行这个命令时,它在Docker上失败了 symfony new --version=5.0-1 --book guestbook 请帮我运行命令: “symfony new--version=5.0-1--book guestbook”没有任何问题。我不明白我为什么会有这样的错误: [WEB] Stopping Docker Containers: [ KO ] Co

我在Ubuntu20上。*我有一本为Symfony5写的书《快车道》(来自FabienPovertier)。 但当我尝试在下面执行这个命令时,它在Docker上失败了

symfony new --version=5.0-1 --book guestbook
请帮我运行命令: “symfony new--version=5.0-1--book guestbook”没有任何问题。我不明白我为什么会有这样的错误:

[WEB] Stopping Docker Containers: [ KO ]
Couldn't connect to Docker daemon at http+docker://localhost - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

Re-run the command with --debug to get more information about the error
这是我执行命令时的控制台结果:

Checking Book Requirements
--------------------------

[OK] Git installed
[OK] PHP installed version 7.4.3 (/usr/bin/php7.4)
[OK] PHP extension "json" installed
[OK] PHP extension "session" installed
[OK] PHP extension "ctype" installed
[OK] PHP extension "tokenizer" installed
[OK] PHP extension "xml" installed
[OK] PHP extension "redis" installed
[OK] PHP extension "intl" installed
[OK] PHP extension "pdo_pgsql" installed
[OK] PHP extension "xsl" installed
[OK] PHP extension "amqp" installed
[OK] PHP extension "gd" installed
[OK] PHP extension "openssl" installed
[OK] PHP extension "sodium" installed
[OK] Composer installed
[OK] Docker installed
[OK] Docker Compose installed
[OK] Yarn installed


    Cloning the Repository
----------------------

Clonage dans '/var/www/symfony5/guestbook'...
remote: Enumerating objects: 1170, done.
remote: Counting objects: 100% (1170/1170), done.
remote: Compressing objects: 100% (573/573), done.
remote: Total 1170 (delta 557), reused 1170 (delta 557), pack-reused 0
Réception d'objets: 100% (1170/1170), 4.05 Mio | 1.91 Mio/s, fait.
Résolution des deltas: 100% (557/557), fait.

Getting Ready for the Last Step of the Book
-------------------------------------------

[GIT] Check for not yet committed changes: [ OK ]
[GIT] Check Git un-tracked files: [ OK ]

[GIT] Removing Git ignored files (vendor, cache, ...): [ OK ]
[GIT] Resetting Git staged files: [ OK ]
[GIT] Removing un-tracked Git files: [ OK ]
[WEB] Adding .env.local: [ OK ]
[WEB] Stopping Docker Containers: [ KO ]
Couldn't connect to Docker daemon at http+docker://localhost - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

Re-run the command with --debug to get more information about the error
当我执行--debug时,我得到了相同的结果(相同的错误语句)。 我的docker正在运行,它可以工作:

docker run hello-world

Hello from Docker!
This message shows that your installation appears to be working correctly.
我需要以docker组的用户身份添加“我”(它不是用doc编写的,也不是远离install doc编写的)。

它适合我! 在linux命令行上:

sudo groupadd docker
sudo usermod -aG docker $USER

多次问同一个问题可能不会产生有用的结果。第一个问题已经结束了不(我不明白它是如何工作的)?如果不是,我想删除第一个。或者,如果您需要其他信息(信息、代码等),请毫不犹豫地询问!)似乎symfony未能停止docker容器服务。您是否尝试使用sudo运行命令?如果有效,请尝试更新docker服务,以允许当前用户停止。谢谢,我今晚将尝试使用windows 10:barre de recherche
Gestion de l'Coordinator
使用人和组群位置
使用人
>单击droit
Nouvel使用人
。套间所有档案
Groupes
>双击sur
docker用户
>en bas
ajour
>en bas
Avancé
Rechercher
>双击sur
me