You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
environment (Union[Dict[str, str], List[str]): Environment variables to set inside
the container, as a dictionary or a List[str] in the format
["SOMEVARIABLE=xxx", "SOMEOTHERVARIABLE=xyz"].
...
# Transform keywords into parameters
params = {
...
"env": pop("environment"),
}
This fails like so
podman.errors.exceptions.APIError: 500 Server Error: Internal Server Error (decode(): json: cannot unmarshal array into Go struct field SpecGenerator.env of type map[string]string)
https://github.com/containers/podman-py/blob/main/podman/domain/containers_create.py
This fails like so
podman.errors.exceptions.APIError: 500 Server Error: Internal Server Error (decode(): json: cannot unmarshal array into Go struct field SpecGenerator.env of type map[string]string)
https://docs.podman.io/en/latest/_static/api.html#tag/containers/operation/ContainerCreateLibpod
object
Env is a set of environment variables that will be set in the container. Optional.
This will fail to parse unless passed as an object.
The text was updated successfully, but these errors were encountered: