aio-libs / aiodocker

Python Docker API client based on asyncio and aiohttp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing support for `platform` param in `images.build`

AndreaCensi opened this issue · comments

The most recent versions of Docker support a platform parameter:

https://docs.docker.com/engine/api/v1.41/#operation/ImageBuild

(This can be used, for example, to build amd64 images on an arm64 machine.)

Currently this parameter is not passed:

params = {
"t": tag,
"rm": rm,
"q": quiet,
"pull": pull,
"remote": remote,
"nocache": nocache,
"forcerm": forcerm,
"dockerfile": path_dockerfile,
}

Pull request is welcome!
At least a simple test is required.