Docker-compose up -d no configuration file provided: not found

    
docker-compose up -d no configuration file provided: not found
    
  

The error message “no configuration file provided: not found” indicates that Docker Compose could not find the specified configuration file. Docker Compose requires a configuration file (usually named docker-compose.yml) to define the services, networks, and volumes for your application’s containers.

To resolve this issue, you need to make sure that the configuration file is present in the correct directory and correctly named. Here are a few examples:

  • Example 1:

            
    project
    └── docker-compose.yml
          
        
  • Example 2 (for multi-file configuration):

            
    project
    ├── docker-compose.yml
    ├── service1
    │   └── docker-compose.yml
    ├── service2
    │   └── docker-compose.yml
    └── service3
        └── docker-compose.yml
            
          
  • Example 3 (specifying a different filename):

            
    project
    └── custom-file-name.yml
            
          

    In this case, you would need to specify the filename when running the docker-compose command, like:

            
    docker-compose -f custom-file-name.yml up -d
            
          

It’s important to note that the docker-compose command should be executed in the same directory as the configuration file, or you should provide the correct path.

Similar post

Leave a comment