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
{{ message }}
Repository navigation
Requests get a double API version path with daemons below API 1.45 (Podman) #78
Since 1.2.0 (#75, docker-php 4) the default client can't talk to a daemon whose max API version is below 1.45, e.g. Podman (it reports 1.41). Every container start fails with Docker\Exception\BadRequestException: Failed to decode JSON.
DockerClientFactory::createFromEnv() in docker-php 4 already negotiates the API version and adds the /v<negotiated> path. DockerContainerClient then passes this client to Docker::create($httpClient) with server plugins on, so the generated /v1.45 path is added too. The request becomes /v1.41/v1.45/info and the daemon answers 404 with plain text. Against Docker 1.45+ the two prefixes are the same, so it goes unnoticed.
Activity