# Solution for docker: invalid reference format: repository name must be lowercase

**URL:** <https://forum.codewithmosh.com/t/solution-for-docker-invalid-reference-format-repository-name-must-be-lowercase/10630>\
**Category:** Docker\
**Created:** [February 12, 2022, 2:34pm UTC](https://forum.codewithmosh.com/t/solution-for-docker-invalid-reference-format-repository-name-must-be-lowercase/10630 "2022-02-12T14:34:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaunumb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/shaunumb/32/3299_2.png) [@shaunumb](https://forum.codewithmosh.com/u/shaunumb)\
**Post date:** [February 12, 2022, 2:34pm UTC](https://forum.codewithmosh.com/t/solution-for-docker-invalid-reference-format-repository-name-must-be-lowercase/10630/1 "2022-02-12T14:34:24Z")

</div>

Hello – if anyone comes up against this error:

```auto
docker: invalid reference format: repository name must be lowercase.

```

when running something similar to this:

```auto
docker run -d -p 5001:3000 -v $(pwd):/app react-app

```

then try wrapping the volume mapping paths in quotes e.g.

```auto
docker run -d -p 5001:3000 -v "$(pwd):/app" react-app

```

Solution detailed here: [Docker error: invalid reference format: repository name must be lowercase - Stack Overflow](https://stackoverflow.com/questions/48522615/docker-error-invalid-reference-format-repository-name-must-be-lowercase)
