Skip to content

Makefile build fails, uses $NAME environment variable #11

@Criss-Ivana

Description

@Criss-Ivana

Similar to an issue fixed in a separate commit, see #3e01a34.
The Makefile uses a variable NAME for the tag of the Docker image. On some systems like mine, $NAME is a default environment variable used to store the hostname. When running make run:

v3r0@Juju:~/cdl/workshop-docker/perpetual-writer$ make run
docker build -f Dockerfile -t Juju .
[+] Building 0.0s (0/0)                                                                                                                      docker:default
ERROR: failed to build: invalid tag "Juju": repository name must be lowercase
make: *** [Makefile:6: build] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions