Skip to content

image.push doesn't fail if docker daemon fails to push image to registry #329

@neurogenesis

Description

@neurogenesis

We're having a problem pushing images to a 3rd-party container registry (quay.io), which seems to stem from a mismatch in API versions.

We can push an image from the docker command-line, which uses API v1.19 (POST /v1.19/images/...), whereas image.push via docker daemon results in failed push attempts (which appears to use API v1.15, POST /v1.15/images...).

Problems with docker daemon and quay.io aside, we would expect image.push to fail if docker cannot push the image to the registry. It would appear this is an asynchronous call at the moment, without a way to inspect the result / success of the call.

https://github.com/swipely/docker-api/blob/master/lib/docker/image.rb#L24-L38

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions