Open vaahtokarkki opened 3 months ago
Podlet fails to parse image from compose file when the image registry url has a port defined. Reproducible with following steps;
Create compose.yaml with following contents:
compose.yaml
services: test: image: ghcr.io:443/containers/podlet
Run podlet:
podman run --rm -v ./compose.yaml:/compose.yaml:Z ghcr.io/containers/podlet compose /compose.yaml
Following error is printed:
Error: 0: error converting compose file 1: error reading compose file 2: File `/compose.yaml` is not a valid compose file 3: services.test.image: invalid image tag: image tag contains invalid character '/', tags must only contain ASCII letters (a-z, A-Z), digits (0-9), dots (.), underscores (_), and dashes (-) at line 3 column 12
Also getting hit by this.
Good catch. I didn't think about registry ports when writing the image Name validation logic as it's not included in the regex of the spec and the "Implementers Note" wasn't there.
Name
Blocked on k9withabone/compose_spec_rs#22.
Podlet fails to parse image from compose file when the image registry url has a port defined. Reproducible with following steps;
Create
compose.yaml
with following contents:Run podlet:
Following error is printed: