Skip to content

[WIP] Moving docker service digest pinning to client side#32384

Closed
nishanttotla wants to merge 1 commit intomoby:masterfrom
nishanttotla:pin-by-digest-on-client
Closed

[WIP] Moving docker service digest pinning to client side#32384
nishanttotla wants to merge 1 commit intomoby:masterfrom
nishanttotla:pin-by-digest-on-client

Conversation

@nishanttotla
Copy link
Contributor

@nishanttotla nishanttotla commented Apr 5, 2017

- What I did
Digest pinning was introduced for Docker services in #28173, and it was performed on the daemon. After #32061, I moved digest pinning to the client, simplifying it.

- How I did it
The client makes a call to /images/image_name/manifest to retrieve manifest information, which contains the image digest.

- How to verify it
docker service create --name test alpine sleep 1000 then docker service inspect test should contain an image with the digest.

- Description for the changelog

Docker service image pin by digest moved to client side.

- WIP

- A picture of a cute animal (not mandatory but encouraged)
goshi

This is Gosha, the friendliest cat in Berkeley.

cc @aaronlehmann @aluzzardi @vieux @tonistiigi

updateOpts.RegistryAuthFrom = types.RegistryAuthFromSpec
}

// TODO(nishanttotla): Figure out correct registry auth to pass here

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updateOpts.EncodedRegistryAuth seems right. This will be set if --with-registry-auth is specified. There probably isn't much point in using auth credentials to resolve the digest if those credentials won't be passed on with the service for pulling.

@aaronlehmann
Copy link

Design LGTM. However, there are compile errors. I think this needs the commit from #32061 to compile.

@nishanttotla
Copy link
Contributor Author

@aaronlehmann that's correct, I've included #32061 as a WIP item. Once that is merged and rebased, this should compile.

@nishanttotla
Copy link
Contributor Author

cc @dhiltgen @alexmavr

@nishanttotla
Copy link
Contributor Author

An alternative approach to this PR is in #32388

@nishanttotla
Copy link
Contributor Author

Closing this PR in favor of #32388.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants