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

前端 未结 22 2154
孤独总比滥情好
孤独总比滥情好 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-12 23:52

    This is happening because of the spaces in the current working directory that came from $(pwd) for map volumes. So, I used docker-compose instead.

    The docker-compose.yml file.

    version: '3'
    services:
      react-app:
        build:
          context: .
          dockerfile: Dockerfile.dev
        ports:
          - "3000:3000"
        volumes:
          - /app/node_modules
          - .:/app
    

提交回复
热议问题