I need to navigate to my docker-compose.yml file but writing cd docker-compose.yml doesn't work. The Terminal tells me that the catalog name is wrong or invalid, couldn't find the right translation. I want to navigate to the docker-compose so i can run docker up in the Terminal.
You need to do cd app
.
docker-compose.yml
is a file, inside the directory app
. Since cd
moves you to a directory, it makes no sense to launch it on a file.
The command you want once you are in the same folder as your docker-compose.yml is docker-compose up
.
So to sum it up:
cd app
docker-compose up
You are already in the directory for docker-compose, but you can't cd to a file, you want to run commands for it.
Its not possible to cd into a file, you can use docker-compose command to run the file.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.