akhilrex / podgrab

A self-hosted podcast manager/downloader/archiver tool to download podcast episodes as soon as they become live with an integrated player.
GNU General Public License v3.0
1.55k stars 88 forks source link

Docker Network - Ports Syntax Error (IP) #238

Open glacialcalamity opened 1 year ago

glacialcalamity commented 1 year ago

Please complete the following information

Describe the bug

Whenever I use the short-form syntax with IP it doesn't want to comply with Docker proposed syntax

To Reproduce Steps to reproduce the behavior:

  1. Under "Ports"
  2. Add the follow config ` - "IP:InternalPort:ExternalPort/[tcp|udp]"
  3. See error strconv.Atoi: parsing "": invalid syntax

Expected behavior According to https://docs.docker.com/config/containers/container-networking/, I expect the short syntax for IP + Port to be supported as per the docker docs link below:

https://docs.docker.com/config/containers/container-networking/#published-ports

All other containers accept this syntax without issue.

Additional context If I remove the IP portion or use long-form syntax as shown below then it works fine.

ports:
  - target: 
    published:  
    protocol: 
    mode: 

I've also removed any single or double quote from the port line to see if that was causing an issue. With those syntax items removed, the error in the log still persists.

Log (Delete + Re-install) 2022/09/18 14:15:28 /config/podgrab.db 2022/09/18 14:15:28 Config Dir: /config 2022/09/18 14:15:28 Assets Dir: /assets 2022/09/18 14:15:28 Check Frequency (mins):
2022/09/18 14:15:28 strconv.Atoi: parsing "": invalid syntax