Docker containers fail to start due to docker-compose.yml error
See original GitHub issueIssue Description
Describe the bug Installed wp-local-docker v3.0.0 in WSL. When trying to create or start a project, it fails in starting the docker containers with the following error in docker-compose.yml:
Error : yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:js/undefined' in "./docker-compose.yml", line 48, column 20
Steps to Reproduce
- 10updocker create
- Go through setup
- Error is produced when starting containers
Expected behavior The expectation is that the site would be created or that the site would start
Screenshots
Environment information
- Device: PC Desktop
- OS: Windows 11
- Docker Desktop version: 4.1.1
- Browser and version: N/A
- WordPress version: N/A (not installed yet, but would be latest from WP git repo)
- nvm: 1.1.7
- npm: 8.1.3
Additional context This is a freshly installed version of wp-local-docker.
Also, thanks for making this! It’s appreciated. I’ve been using wp-local-docker since the initial version.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:12 (1 by maintainers)
Top Results From Across the Web
docker-compose start "ERROR: No containers to start"
The issue here is that you haven't actually created the containers. You will have to create these containers before running them.
Read more >How to Fix and Debug Docker Containers Like a Superhero
Container errors are tricky to diagnose, but some investigative magic works wonders. Read along to learn how to debug Docker containers.
Read more >Solution build fails with docker compose error (in VS 15.3)
Developer Community. We have solution with docker enabled projects. It works if remove nginx service from docker-compose. yml and fails if return nginx...
Read more >Troubleshooting Docker - Sitecore Documentation
Containers are stuck on Created status ... You usually see this error after you use docker-compose up . Certain services might fail to...
Read more >Deployment Errors - Appsmith
In the file docker-compose.yml , change the ports for the Nginx container to a ... containers failed to start it may be due...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @gsarig we are currently working on a more permanent solution. I will update when I have more info.
In your site directory you will find a .containers/php-fpm file. Can you try replacing it with this?
Then run
docker-compose build
and finally10updocker start
.