-
Notifications
You must be signed in to change notification settings - Fork 883
docker-compose up failed #119
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
Comments
Hello, thanks for your issue, you could fetch to latest project and try again, and run "docker-compose up" to see what is happening. |
Hello, as your description, please check whether there is a Docker Desktop on your host Windows, if there is ,maybe it happened about the env problem. If you don't have Docker Desktop installed on Windows and you're encountering the "docker-credential-desktop.exe not installed or not available in PATH" error when running docker-compose up in WSL, you should not be experiencing this issue since it is typically related to Docker Desktop. If you are still encountering Docker-related issues in WSL, you can try the following steps to resolve the problem: Ensure Docker is Properly Installed in WSL: First, make sure you have installed Docker within WSL. You can follow the official Docker documentation to install Docker to ensure the correct installation and configuration. Restart WSL: Sometimes, restarting the WSL subsystem can resolve some Docker-related issues. You can restart WSL by running the following command in the Windows terminal: wsl --shutdown After that, try running Docker commands again. Check Docker Configuration: Ensure that your Docker configuration is correct. You can check the configuration file for the Docker daemon, usually located at /etc/docker/daemon.json. Make sure there are no errors in the configuration and make corrections if necessary. Check Docker Installation: Sometimes, Docker installation can go wrong, leading to Docker-related errors. Try reinstalling Docker and make sure you use the correct installation method. If you're still facing issues, it's advisable to provide more error information or logs to better understand the root cause of the problem. This will make it easier to find a solution. |
I fixed this issue by solution of https://stackoverflow.com/questions/67642620/docker-credential-desktop-not-installed-or-not-available-in-path Thanks for your time! 👍 |
When you commit 8b17c43 which delete name: tool-server-network , I can run "docker-compose up" successfully but there is no "tool-server-network" container, hence this project doesn't work. When you rollback in commit 6c04841, the issue in the very beginning shows again. |
docker-compose --env-file .env up -d |
change the version to 3.7(the first line in docker-compose.yaml) will solve the problem "name was unexpected". |
👍 thank you |
thank you . it's work |
|
I have encountered with same error, here is the details: Error Conclusion Problem Environment sudo curl -L [https://github.com/docker/compose/releases/download/v2.21.0/docker-compose- sudo chmod +x /usr/local/bin/docker-compose |
Issue Description / 问题描述
when I run "docker-compose up", there is an ERROR.
"The Compose file './../docker-compose.yml' is invalid because:
networks.default value Additional properties are not allowed ('name' was unexpected)"
Steps to Reproduce / 复现步骤
download this project, run "cd ToolServer" then run "docker-compose up" in terminal.
Expected Behavior / 预期行为
Get docker stuff right
Environment / 环境信息
Error Screenshots or Logs / 错误截图或日志
If possible, please provide relevant screenshots or logs of the error. / 如果可能,请提供相关的错误截图或日志文件。

Additional Notes / 其他备注
If you have any additional information or notes, please add them here. / 如果有其他补充信息,请在此处添加。
I sure the project is fetched to latest.
It seems that can't read variable in ".env" file also?
The text was updated successfully, but these errors were encountered: