-
Notifications
You must be signed in to change notification settings - Fork 124
Closed
Description
Expected behavior
Variable passed to COPY --from=${VARIABLE} /src /dest
command would resolve.
Actual behavior
Variable is not resolved and instead generates error which indicates an invalid image name.
Service 'nginx' failed to build: invalid from flag value $name: invalid reference format
Information
-
Full output of the diagnostics from "Diagnose & Feedback" in the menu
50A907DF-6AD6-46D8-BB63-C833ED2F502F -
A reproducible case if this is a bug, Dockerfiles FTW
-
Page URL if this is a docs issue or the name of a man page
Steps to reproduce the behavior
- Copy zipped docker-compose and Dockerfile-nginx files into a folder.
- run the command from that folder:
docker-compose build --build-arg name="image_name" nginx
Output should be: ERROR: Service 'nginx' failed to build: invalid from flag value $name: invalid reference format
MartinMuzatko, kiorky, sfwn, spiilmusic, kbulygin and 8 more