Docker Community Forums

Share and learn in the Docker community.

Error: can't find file or directory

Hi.
I have installed docker version 3.0.1 and it works properly, but gets an error message when I try to run compose file. Attach text from terminal, MAC OS catalina v10.15.7.

Last login: Fri Dec 18 14:46:59 on ttys000
jonnysollid@Jonnys-Mac-mini ~ % cd documents
jonnysollid@Jonnys-Mac-mini documents % ls
docker-compose.yaml.txt
jonnysollid@Jonnys-Mac-mini documents % docker-compose up --detach
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

jonnysollid@Jonnys-Mac-mini documents % docker-compose.yml up --detach
zsh: command not found: docker-compose.yml
jonnysollid@Jonnys-Mac-mini documents %