docker / docker/docker-py

Support for platform in client.images.api.push

Open
#3,324 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
7.2k
Forks
1.7k
Avg merge
13d 8h
Merged PRs (30d)
2

Description

API version v1.48 accepts platform argument as parameter to be passed to /images/{name}/push but it is not implemented in image.py.

Below function should accept platform i.e JSON-encoded OCI platform to select the platform-variant to push:

def push(self, repository, tag=None, stream=False, auth_config=None,
             decode=False):

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the push implementation in image.py around the linked client.images.api.push definition, and compare it with the Docker Engine API v1.48 ImagePush reference. Done means the method accepts the platform argument and passes it to /images/{name}/push; check the existing image API tests for the appropriate validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
api
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.