How do I add a C:\{some_path}\docker-compose
file to system path in Windows 10? Currently, I am running it by navigating to the path in cmd and entering command docker-compose up.
Asked
Active
Viewed 2,354 times
0

Khawaja Muhammad Ahsen
- 75
- 2
- 12
1 Answers
0
I guess you should check out the instructions listed here:
https://www.java.com/en/download/help/path.xml
Make sure you add the correct path for docker-compose
. It will work

Kumar Shubham
- 484
- 6
- 17
-
This example modifies path for java, you can do for docker also in the same way. – Kumar Shubham Dec 03 '17 at 12:15
-
I already have added `C:/{some_path}/` to *Path*. However, when I try to run docker from anywhere, it gives me this error. `Can't find a suitable configuration file in this directory or any parent. Are you in the right directory? Supported filenames: docker-compose.yml, docker-compose.yaml` – Khawaja Muhammad Ahsen Dec 03 '17 at 13:05
-
So the directory where you run docker-compose, does it have the correct docker-compose.yml file ? – Kumar Shubham Dec 04 '17 at 03:54
-
Yes, docker file exists at `C:/{some_path}/docker-compose.yml`. My system path contains an entry of `C:/{some_path}/`. But when I try to run, using `docker-compose up` command using cmd (from anywhere other than navigating to `C:/{some_path}/` folder, it gives me error saying **"Can't find suitable config file in this directory..."**. – Khawaja Muhammad Ahsen Dec 06 '17 at 19:12