porter-archive
porter-archive copied to clipboard
`porter update` throws error
Description
porter update
throws error
Error: repository name must be canonical
Can also be seen at https://github.com/anukul/gin-example/runs/3303306850?check_suite_focus=true
Location
- [ ] Browser
- [x] CLI
- [ ] API
Steps to reproduce
- Connect a docker image repository from Docker Hub
- Deploy app from git repository
Additional Details
Image repository used: https://hub.docker.com/repository/docker/anukulsangwan/gin-example Git repository used: https://github.com/anukul/gin-example
Tried running this locally in debug mode.
Error is thrown by docker's reference.ParseNamed which we're calling from GetServerURLFromTag:
No error if I add this line in GetServerURLFromTag
before calling reference.ParseNamed
:
image = strings.Replace(image, "index.docker.io", "docker.io", -1)
Fixed with https://github.com/porter-dev/porter/pull/2359