Docker error: invalid reference format: repository name must be lowercase

前端 未结 22 2109
孤独总比滥情好
孤独总比滥情好 2020-12-12 23:07

Ran into this Docker error with one of my projects:

invalid reference format: repository name must be lowercase

What are the various causes for

22条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-13 00:07

    On MacOS when your are working on an iCloud drive, your $PWD will contain a directory "Mobile Documents". It does not seem to like the space!

    As a workaround, I copied my project to local drive where there is no space in the path to my project folder.

    I do not see a way you can get around changnig the default path to iCloud which is ~/Library/Mobile Documents/com~apple~CloudDocs

    The space in the path in "Mobile Documents" seems to be what docker run does not like.

提交回复
热议问题