Docker 1.8 introduces DOCKER_CONFIG (aka --config) which can be used to set
an alternate configuration directory

IIUC current design does not support multiple executors running docker
commands with distinct credentials, as both will concurrently update and
rely on same $HOME config file.

I'd like to detect docker 1.8 or later and then rely on a temp directory,
fully isolated per build.

To achieve this I need to enforce all KeyMaterialFactory to use the exact
same KeyMaterialContext, which will require
1. to ensure client code do combine them with KeyMaterialFactory#plus and
does not invoke them separately (like
https://github.com/jenkinsci/docker-build-publish-plugin/blob/master/src/main/java/com/cloudbees/dockerpublish/DockerBuilder.java#L384
does)
2. remove KeyMaterialFactory#contextualize reassign check so
KeyMaterialFactory#plus can force all factories to use the same context

any thoughts ?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANMVJz%3DKabhA8uV%3Dpgn0pOMv5--pPkKLp807u7hnWq1oBEps-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to