Error during docker-compose run

I know this is not the first topic with this subject, but i can’t find an answer so far:

i got following error when i run docker-compose cmd:

POSTGRES_PASSWORD=xxxxxxxxx docker-compose run app rake db:create db:migrate
WARNING: The SSH_AUTH_SOCK variable is not set. Defaulting to a blank string.
Starting consul_database_1 … done
ERROR: Cannot create container for service app: create .: volume name is too short, names should be at least two alphanumeric characters
root@localhost:/consul#

in docker-compose.yaml i tested both versions:

volumes:

  •  - "$PWD:/var/www/consul"*
    

and

volumes:

  •  - ".:/var/www/consul"*
    

No success so far!

Here my environment:

Docker version 20.10.14, build a224086
docker-compose version 1.15.0, build e12f3b9

NAME=“Ubuntu”
VERSION=“20.04.4 LTS (Focal Fossa)”
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=“Ubuntu 20.04.4 LTS”
VERSION_ID=“20.04”

Thanks a lot!!

Hello everyone,

For more information about this problem, there is a thread that you may find useful in the issue #4436.

Regards.