The error message "no configuration file provided: not found" means that Docker Compose can't find the docker-compose.yml (or docker-compose.yaml) file in the current directory or a location specified by the -f flag.
Here's how to troubleshoot this issue:
1. Verify the Existence of docker-compose.yml:
Check the current directory: Use your terminal to navigate to the directory where you think the docker-compose.yml file should be. Then, list the files in that directory:
pwd # Print working directory (make sure it's what you expect)
ls -la # List all files, including hidden ones
Look for common typos: Make sure the filename is exactly docker-compose.yml or docker-compose.yaml (case-sensitive on some systems).
2. Correct Directory:
Navigate to the directory: If the file exists but isn't in your current directory, use cd to change to the correct directory:
cd /path/to/your/docker-compose/file
Then, try docker-compose up --build again.
3. Explicitly Specify the File (If Necessary):
-f flag: If your docker-compose.yml file is in a different location and you don't want to change directories, use the -f (or --file) flag:
docker-compose -f /path/to/your/docker-compose.yml up --build
(Replace /path/to/your/docker-compose.yml with the actual path.)
4. Check for Hidden Files (Less Common):
Sometimes, files can be accidentally created as hidden files (starting with a .). ls -la (as mentioned above) will show these. If your file is named something like .docker-compose.yml, rename it to docker-compose.yml.
5. Docker Compose Installation:
Verify Docker Compose is installed: While the error message doesn't directly point to this, it's good to double-check.
docker-compose --version
If you get an error like "command not found," you need to install Docker Compose. Refer to the Docker documentation for installation instructions specific to your operating system: https://docs.docker.com/compose/install/
Example Scenario:
Let's say your docker-compose.yml file is located in a directory named my-project under your home directory (/home/user on Linux/macOS).
Incorrect Directory: You're in your home directory (/home/user) when you run docker-compose up --build.
pwd # Output: /home/user
ls -la # docker-compose.yml is NOT listed here
docker-compose up --build # Fails with "no configuration file provided"
Solution 1: Change Directory:
cd /home/user/my-project
pwd # Output: /home/user/my-project
ls -la # docker-compose.yml IS listed here
docker-compose up --build # Should now work
Solution 2: Use the -f flag:
cd /home/user
docker-compose -f /home/user/my-project/docker-compose.yml up --build # Works even from the home directory
Troubleshooting Checklist:
Is docker-compose.yml present?
Is it in the directory I expect?
Am I running the command from the correct directory?
If not, am I using the -f flag with the correct path?
Is Docker Compose installed correctly?
By systematically checking these points, you should be able to resolve the "no configuration file provided: not found" error. Good luck!
User
по русски
Assistant
Ошибка "no configuration file provided: not found" означает, что Docker Compose не может найти файл docker-compose.yml (или docker-compose.yaml) в текущей директории или в месте, указанном с помощью флага -f.
Вот как можно устранить эту проблему:
1. Проверьте наличие docker-compose.yml:
Проверьте текущую директорию: Используйте терминал, чтобы перейти в директорию, где, как вы думаете, должен быть файл docker-compose.yml. Затем перечислите файлы в этой директории:
pwd # Выводит текущую рабочую директорию (убедитесь, что она такая, как ожидалось)
ls -la # Выводит все файлы, включая скрытые
Проверьте на распространенные опечатки: Убедитесь, что имя файла точно docker-compose.yml или docker-compose.yaml (регистр имеет значение в некоторых системах).
2. Правильная директория:
Перейдите в директорию: Если файл существует, но не находится в вашей текущей директории, используйте cd, чтобы перейти в правильную директорию:
cd /путь/к/вашему/docker-compose/файлу
Затем снова попробуйте docker-compose up --build.
3. Явно укажите файл (если необходимо):
Флаг -f: Если ваш файл docker-compose.yml находится в другом месте, и вы не хотите менять директории, используйте флаг -f (или --file):
docker-compose -f /путь/к/вашему/docker-compose.yml up --build
4. Проверьте на скрытые файлы (менее распространенный случай):
Иногда файлы могут быть случайно созданы как скрытые файлы (начинающиеся с .). ls -la (как упоминалось выше) покажет их. Если ваш файл называется, например, .docker-compose.yml, переименуйте его в docker-compose.yml.
5. Установка Docker Compose:
Убедитесь, что Docker Compose установлен: Хотя сообщение об ошибке напрямую на это не указывает, полезно перепроверить.
User
open C:\compose\compose-file.yml: The system cannot find the path specified.
Assistant
Okay, this error message open C:\compose\compose-file.yml: The system cannot find the path specified. is much more specific. It tells us exactly what's wrong: Docker Compose is trying to open a file at C:\compose\compose-file.yml, and the operating system (Windows) can't find that location.
Here's how to address this issue:
1. Verify the Path (Most Important):
Double-check the path: Carefully examine C:\compose\compose-file.yml. Does this path actually exist on your computer? Are there any typos?
Check case sensitivity (less common on Windows, but good practice): Make sure the capitalization in the path is correct (e.g., Compose vs. compose).
Look for missing or extra backslashes: Windows paths use backslashes (\). Make sure you have the correct number and placement.
2. File Existence:
Confirm the file exists: Open File Explorer and navigate to C:\compose. Is the file compose-file.yml actually there? If not, you'll need to create it or move it to that location.
3. Command-Line Context (Important):
-f flag with wrong path: You're likely using the -f flag in your docker-compose up --build command, and the path you're providing is incorrect. For example:
docker-compose -f C:\compos\compose-file.yml up --build # Typo: "compos" instead of "compose"
Incorrect working directory (less likely in this scenario): Even with the -f flag, it's good to be aware of your current directory in the command line. If the path to your file is relative, rather than absolute, then the current directory matters.
4. File Permissions (Less Likely, But Possible):
Insufficient permissions: It's unlikely on Windows unless you've specifically set up restrictive permissions, but ensure that the user account you're using to run Docker Compose has read access to the C:\compose\compose-file.yml file.
5. Alternative Path Formats (Windows):
Forward slashes: While backslashes are the standard, Windows often also accepts forward slashes () in paths. You could try using instead of , although this isn't the primary solution.
User
time="2025-07-03T23:14:31+03:00" level=warning msg="The "ENVIRONMENT" variable is not set. Defaulting to a blank string."
time="2025-07-03T23:14:31+03:00" level=warning msg="C:\Users\Lenovo\YandexDisk\frontend\frontend-app\compose\compose.yaml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion"
unable to get image 'registry.services.mts.ru/asc/code/frontend-app:v1.30.0': error during connect: Get "http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/v1.49/images/registry.services.mts.ru/asc/code/frontend-app:v1.30.0/json": open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified.
Assistant
Okay, this output shows several issues:
"ENVIRONMENT" variable not set: This is a warning, not an error, and might not be causing your immediate problem. It means you're using an environment variable named "ENVIRONMENT" in your docker-compose.yaml but haven't defined it. Docker Compose will default to an empty string, which might be fine depending on how that variable is used.
version attribute obsolete: This is another warning. The version: 'x.x' at the top of your docker-compose.yaml is deprecated and should be removed. Docker Compose will ignore it, but it's cleaner to remove it. This isn't the reason your build is failing.
unable to get image '...': error during connect: ... The system cannot find the file specified. THIS IS THE PROBLEM.
This error indicates that Docker cannot connect to the Docker Desktop Linux Engine to pull the image registry.services.mts.ru/asc/code/frontend-app:v1.30.0. The specific error "The system cannot find the file specified" when trying to connect to //./pipe/dockerDesktopLinuxEngine is a telltale sign of a connection issue.
Here's a breakdown of the problem and how to fix it:
Root Cause: Docker Engine Connection Problem (Most Likely)
This error often occurs when Docker Desktop isn't running correctly or when there's a problem with the Docker Engine's connection to the Windows subsystem. This is more common with Docker Desktop using the WSL2 backend.
Solutions (Try these in order):
Restart Docker Desktop: This is the simplest and often most effective solution. Completely shut down Docker Desktop (from the system tray) and then restart it. Wait for it to fully initialize before running docker-compose up --build again.
Check Docker Desktop Status: Ensure Docker Desktop is running and the Docker Engine is in a healthy state. Look for any error messages or warnings in the Docker Desktop UI. The little whale icon in your system tray should be stable and not have any error indicators.
Verify Docker Desktop Integration with WSL2: If you are using WSL2 backend (check in Docker Desktop settings), ensure Docker Desktop has proper integration with your WSL2 distribution(s).
In Docker Desktop Settings, go to "Resources" -> "WSL Integration". Make sure your WSL2 distribution(s) are checked.
If they're already checked, try unchecking them, applying the changes, then rechecking them and applying again. This can sometimes reset the integration.
User
time="2025-07-03T23:14:31+03:00" level=warning msg="The "ENVIRONMENT" variable is not set. Defaulting to a blank string."
time="2025-07-03T23:14:31+03:00" level=warning msg="C:\Users\Lenovo\YandexDisk\frontend\frontend-app\compose\compose.yaml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion"
unable to get image 'registry.services.mts.ru/asc/code/frontend-app:v1.30.0': error during connect: Get "http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/v1.49/images/registry.services.mts.ru/asc/code/frontend-app:v1.30.0/json": open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified.
Assistant
Okay, we've moved past the initial "file not found" error, which is good! Now we have a few new issues:
Environment Variable Warning:The "ENVIRONMENT" variable is not set. Defaulting to a blank string. This is a warning, not a critical error. Your Docker Compose file likely references an environment variable named ENVIRONMENT. You can fix this by either:
Setting the environment variable: Before running docker-compose up, set the variable in your shell:
# Windows (PowerShell)
$env:ENVIRONMENT="your_environment_value"
docker-compose up --build
# Windows (CMD)
set ENVIRONMENT=your_environment_value
docker-compose up --build
# Linux/macOS
export ENVIRONMENT="your_environment_value"
docker-compose up --build
Replace "your_environment_value" with the actual value you want to use (e.g., "development", "production").
Providing a default value in the docker-compose.yml: You can set a default value directly in your docker-compose.yml file:
version: "3.9" # or whatever version you're using
services:
your_service:
# ... other settings ...
environment:
ENVIRONMENT: ${ENVIRONMENT:-default_value}
Replace default_value with the default you want if the environment variable isn't set.
version Attribute is Obsolete:C:\\Users\\Lenovo\\YandexDisk\\frontend\\frontend-app\\compose\\compose.yaml: the attribute \version` is obsolete, it will be ignored, please remove it to avoid potential confusion" This is another warning, but it's good practice to fix it. Simply remove theversion: "3.x"line from the top of yourdocker-compose.yaml` file. Docker Compose will automatically detect the version based on the features you're using.
The Critical Error: Image Pull Failure:unable to get image 'registry.services.mts.ru/asc/code/frontend-app:v1.30.0': error during connect: Get "http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/v1.49/images/registry.services.mts.ru/asc/code/frontend-app:v1.30.0/json": open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified. This is the main problem preventing your docker-compose up from working. This error indicates that Docker is failing to connect to the Docker Desktop Linux Engine (likely running in WSL2 or a similar environment) to pull the image registry.services.mts.ru/asc/code/frontend-app:v1.30.0.
User
frontend-app Error failed to resolve reference "registry.services.mts.ru/asc/code/frontend-app:v1.30.0": failed to do request: ... 1.5s
Error response from daemon: failed to resolve reference "registry.services.mts.ru/asc/code/frontend-app:v1.30.0": failed to do request: Head "https://registry.services.mts.ru/v2/asc/code/frontend-app/manifests/v1.30.0": dialing registry.services.mts.ru:443 container via direct connection because static system has no
HTTPS proxy: connecting to registry.services.mts.ru:443: dial tcp: lookup registry.services.mts.ru: no such host
Assistant
This error message is very helpful. It clearly indicates a DNS resolution problem:
lookup registry.services.mts.ru: no such host
This means your computer is unable to find the IP address associated with the hostname registry.services.mts.ru. This prevents Docker from pulling the image. Here's how to resolve this:
1. Network Connectivity (The Obvious First):
Are you connected to the internet? This might seem obvious, but double-check that you have an active internet connection.
Can you ping registry.services.mts.ru? Open a command prompt or terminal and run:
ping registry.services.mts.ru
If you get "Request timed out" or "Destination host unreachable," it confirms that you can't reach the server.
2. DNS Server Issues:
Incorrect DNS settings: Your computer might be using incorrect or unreliable DNS servers. Try changing your DNS servers to public ones like Google's (8.8.8.8 and 8.8.4.4) or Cloudflare's (1.1.1.1 and 1.0.0.1).
Windows: Go to Network and Sharing Center -> Change adapter settings -> Right-click your network adapter -> Properties -> Select "Internet Protocol Version 4 (TCP/IPv4)" -> Properties -> Select "Use the following DNS server addresses:" and enter the addresses.
Linux/macOS: The method varies depending on your distribution/OS version. You'll typically find the settings in your network configuration. You might edit /etc/resolv.conf (but be aware that this file might be overwritten by network management tools).
Flush your DNS cache: Sometimes, your computer caches outdated DNS information. Clear your DNS cache:
Windows:
ipconfig /flushdns
Linux:
sudo systemd-resolve --flush-caches # For systemd-resolved
sudo /etc/init.d/networking restart # If not using systemd-resolved
3. Docker DNS Configuration (Important for Docker Desktop):
Docker Desktop DNS settings: Docker Desktop has its own DNS settings. Check these settings to see if they are interfering. In Docker Desktop, go to Settings -> Resources -> DNS. The default is usually "Automatic," which should work in most cases. If you've configured custom DNS servers, make sure they're correct and accessible. Try switching it to "Automatic" to see if it resolves the issue.
docker-compose --version
Если вы получаете ошибку, например, "command not found", вам необходимо установить Docker Compose. Обратитесь к документации Docker для получения инструкций по установке, специфичных для вашей операционной системы: https://docs.docker.com/compose/install/
Пример сценария:
Предположим, ваш файл docker-compose.yml находится в директории с именем my-project в вашей домашней директории (/home/user в Linux/macOS).
Неправильная директория: Вы находитесь в своей домашней директории (/home/user), когда запускаете docker-compose up --build.
pwd # Вывод: /home/user
ls -la # docker-compose.yml ЗДЕСЬ НЕ отображается
docker-compose up --build # Не удается, выдает "no configuration file provided"
Решение 1: Сменить директорию:
cd /home/user/my-project
pwd # Вывод: /home/user/my-project
ls -la # docker-compose.yml ЗДЕСЬ отображается
docker-compose up --build # Теперь должно работать
Решение 2: Использовать флаг -f:
cd /home/user
docker-compose -f /home/user/my-project/docker-compose.yml up --build # Работает даже из домашней директории
Контрольный список по устранению неполадок:
docker-compose.yml присутствует?
Он находится в ожидаемой директории?
Я запускаю команду из правильной директории?
Если нет, использую ли я флаг -f с правильным путем?
Docker Compose установлен правильно?
Систематически проверяя эти пункты, вы сможете устранить ошибку "no configuration file provided: not found". Удачи!
/
/
\
Quotes around the path: If your path has spaces, always put quotes around the path. Although, the given path doesn't contain any spaces.
Example Scenario:
Let's say you intended to put the file in C:\MyComposeFiles\docker-compose.yml, but you accidentally typed C:\compose\compose-file.yml in your command.
docker-compose -f C:\compose\compose-file.yml up --build # FAILS: Path doesn't exist
docker-compose -f C:\MyComposeFiles\docker-compose.yml up --build # WORKS (assuming the file exists there)
Troubleshooting Steps:
Open File Explorer: Go to C:\compose. Does this folder exist? Is compose-file.yml inside it?
Examine your docker-compose command: Very carefully check the -f flag and the path you're providing. Make sure it exactly matches the actual location of the file.
Try using the full path: Even if you think you're in the right directory, use the absolute path with the -f flag to remove any ambiguity.
Check the location where you created/saved the file: Did you save the file to the location you thought you did? It's easy to accidentally save a file to a different directory.
By carefully verifying the path and file existence, you should be able to resolve this error. Let me know if you can confirm the existence of the file and the command you are running!
Check WSL2 Distribution Health: Your WSL2 distribution might have issues. Open your WSL2 terminal and run:
wsl -l -v
This lists your WSL2 distributions and their states. If any are "Stopped" or "Degraded", try restarting them:
wsl --shutdown # Shuts down all WSL2 instances. Restart Docker Desktop after this.
or
wsl --terminate <distribution_name> #Terminates a specific distro
Docker Daemon Not Responding: In rare cases, the Docker daemon itself might be unresponsive. You can try restarting the Docker service within Docker Desktop (often there's a restart option in the Troubleshoot menu).
Check Docker Desktop Resources:
Ensure that Docker Desktop has enough memory and CPU allocated to it. If it is running out of resources, it can cause connection issues. Go to Docker Desktop settings -> Resources -> Advanced and adjust the memory and CPU limits.
Firewall/Antivirus Interference (Less Likely): Although less common, a firewall or antivirus program might be interfering with Docker's network connections. Temporarily disable your firewall/antivirus to see if that resolves the issue. If it does, you'll need to create exceptions for Docker.
DNS Resolution (Unlikely, but worth checking): Docker might be having trouble resolving the hostname registry.services.mts.ru. Try pinging it from within your WSL2 distribution:
ping registry.services.mts.ru
If the ping fails, you might have a DNS issue within your WSL2 environment. Try adding a public DNS server (like Google's 8.8.8.8) to your WSL2 network settings. This is a more advanced troubleshooting step.
Docker Desktop Reset/Reinstall (Last Resort): If none of the above solutions work, you might need to reset Docker Desktop to its factory defaults or, as a last resort, uninstall and reinstall it.
Specific Actions Based on the Error:
The specific error message "The system cannot find the file specified" is usually a sign that Docker Desktop is having problems communicating with the Docker Engine. This often boils down to the steps of restarting Docker Desktop, checking WSL integration, and ensuring sufficient resources.
In Summary (Try these steps):
Restart Docker Desktop
Check Docker Desktop status and ensure it is running
Check WSL2 integration in Docker Desktop settings
If all that fails, restart WSL2 with wsl --shutdown and restart Docker Desktop again.
Let me know the results of these steps, and we can proceed with further troubleshooting if necessary. It's important to go through these systematically to isolate the problem.
Here's how to troubleshoot the image pull failure:
Docker Desktop is running? This is the most common cause. Make sure Docker Desktop is running and that it's fully initialized. Check the Docker Desktop icon in your system tray. If it's not running, start it.
Resource sharing in Docker Desktop: Make sure that the drive containing your Docker Compose file is shared with Docker Desktop. Go to Docker Desktop settings -> Resources -> File sharing and ensure that the drive (likely C:) is checked. If you're using WSL2, also check the WSL integration settings.
Firewall/Proxy: A firewall or proxy might be blocking Docker from accessing the internet to pull the image. Temporarily disable your firewall or configure your proxy settings for Docker. Docker Desktop has settings for proxy configuration.
WSL Integration (If applicable): If you're using WSL2, make sure that Docker Desktop is properly integrated with your WSL distribution. In Docker Desktop settings -> Resources -> WSL Integration, make sure your WSL distribution is enabled.
Registry Availability: Verify that the registry.services.mts.ru registry is accessible from your network. Can you ping or access it through a browser? If it's a private registry, ensure you're properly authenticated to it. You might need to docker login registry.services.mts.ru (You'll need to have credentials for that registry).
Image Name Correctness: Double-check the image name (registry.services.mts.ru/asc/code/frontend-app:v1.30.0) in your docker-compose.yaml file. A typo could cause this.
Docker Desktop is in a bad state: Try restarting Docker Desktop. Sometimes it gets into a state where it cannot connect to the engine correctly.
Troubleshooting Steps for Image Pull:
Ensure Docker Desktop is running. Look for the Docker icon in your system tray.
Check Docker Desktop settings -> Resources -> File sharing. Verify that C: is shared.
Check Docker Desktop settings -> Resources -> WSL Integration (if using WSL2). Ensure your distribution is enabled.
Try restarting Docker Desktop.
Try docker login registry.services.mts.ru (if it's a private registry).
Temporarily disable your firewall to see if that's the issue.
Check the image name for typos in your docker-compose.yaml file.
In Summary:
The most likely cause of the unable to get image error is that Docker Desktop isn't running correctly or there's a problem with the connection to the Docker engine. Make sure Docker Desktop is fully initialized, that file sharing is configured correctly, and that any firewalls aren't blocking Docker's access to the internet or the local Docker engine. Fix the warnings about the ENVIRONMENT variable and the obsolete version attribute to keep your configuration clean. Address the image pull issue first!
Docker's --dns option: You can specify DNS servers when running docker run or within your docker-compose.yaml file. However, if the problem is a general DNS resolution issue, this won't solve it. Still, here's how to do it within docker-compose.yaml in case you want to test:
version: "3.9"
services:
your_service:
image: registry.services.mts.ru/asc/code/frontend-app:v1.30.0
dns:
- 8.8.8.8 # Google DNS
- 8.8.4.4 # Google DNS (alternate)
Then run docker-compose down and docker-compose up --build to apply the changes.
4. Firewall/Antivirus Interference:
Firewall blocking DNS requests: Your firewall or antivirus software might be blocking DNS requests to specific DNS servers or generally interfering with network connections. Temporarily disable your firewall/antivirus to see if that resolves the issue. If it does, you'll need to configure your firewall to allow DNS traffic (port 53, both UDP and TCP).
5. VPN Interference:
VPN messing with DNS: If you are using a VPN, it could be interfering with DNS resolution. Try disconnecting from your VPN to see if that fixes the problem. If it does, you may need to adjust your VPN settings or use a different VPN server.
6. hosts file (Less Likely, but Check):
Incorrect entry in hosts file: It's unlikely, but check your hosts file to ensure there isn't an incorrect entry mapping registry.services.mts.ru to the wrong IP address.
Windows:C:\Windows\System32\drivers\etc\hosts
Linux/macOS:/etc/hosts
Open the file with a text editor (as administrator/root) and look for any lines related to registry.services.mts.ru. Comment them out (add a # at the beginning of the line) or remove them.
Troubleshooting Steps:
Verify internet connectivity: Can you browse the web?
ping registry.services.mts.ru: Does it resolve to an IP address? Does it respond?
Flush your DNS cache.
Check your DNS settings and try using Google's DNS (8.8.8.8 and 8.8.4.4) or Cloudflare's (1.1.1.1 and 1.0.0.1).
Check Docker Desktop DNS settings (set to Automatic or specify working DNS servers).
Temporarily disable your firewall/antivirus.
Disconnect from your VPN (if using one).
Check your hosts file for incorrect entries.
The no such host error is almost always a DNS resolution issue. By systematically checking these points, you should be able to find the root cause and fix it. Let me know the results of the ping command, and whether changing DNS servers helps. Also, confirm whether you're using a VPN or anything that might affect network routing.