vv9k / podman-api-rs

Rust interface to Podman (libpod).
MIT License
84 stars 11 forks source link

`InspectNetworkSettings::ports` and `InspectContainerHostConfig::port_bindings` need small type modification #148

Closed marhkb closed 1 year ago

marhkb commented 1 year ago

I just noticed that both fields need to be modified to Option<HashMap<String, Option<Vec<InspectHostPort>>>> to avoid a serialization error.

Steps to reproduce

  1. Download image docker.io/chincheng/neofetch:latest
  2. Create a container from this image
  3. Try to inspect the container. It will fail.

vv9k commented 1 year ago

Thank you for the report! Should be resolved by #150