Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

各位朋友,如果在执行docker-composedocker-compose up -d时报错,请试试我的办法 #93

Closed
Xingeqwd opened this issue Mar 8, 2021 · 2 comments

Comments

@Xingeqwd
Copy link

Xingeqwd commented Mar 8, 2021

错误代码是

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "docker-compose", line 3, in <module>
  File "compose/cli/main.py", line 80, in main
  File "compose/cli/main.py", line 189, in perform_command
  File "compose/cli/command.py", line 70, in project_from_options
  File "compose/cli/command.py", line 153, in get_project
  File "compose/cli/docker_client.py", line 43, in get_client
  File "compose/cli/docker_client.py", line 170, in docker_client
  File "docker/api/client.py", line 197, in __init__
  File "docker/api/client.py", line 222, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
[2739] Failed to execute script docker-compose

很简单,只要
systemctl start docker
即可
(只适用于能有启动systemctl的环境)
其他系统的朋友去找你们系统的办法,目的仅是启动docker这个程序(在有安装的情况下),似乎是因为程序没有启动,所以才会导致“failed to execute script”

@lujiaxuan666
Copy link

感谢老哥

@n0099
Copy link
Collaborator

n0099 commented Jun 21, 2021

service docker start

@kenvix kenvix pinned this issue Jul 5, 2021
@kenvix kenvix closed this as completed Jul 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants