I'm trying to tag my docker image with the git branch name. I have this error: "invalid argument ... for "-t, --tag" flag: invalid reference format"
I converted branch name to lowercase but I still have this issue.
This is the error:
invalid argument "dockdgsp01:5000/lmr_controller_channel_plan:20201009-4131043-feature/pk-2631-implement-dwell-time-logic-in-the-lmr-controller" for "-t, --tag" flag: invalid reference format
where:
What is the error here? What are valid names (strings) for a docker tag?
I believe your problem it the "/" between feature and pk.
If you are calling the command from a bash script you can try removing it like this:
variable=${variable//"/"/-}
Supposing that variable contains the string "feature/pk-2631-implement-dwell-time-logic-in-the-lmr-controller"
And then use it in your docker command as $variable
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With