Docker Community Forums

Share and learn in the Docker community.

Multiple auth tokens for a single server

docker

(Drstrangepork) #1

We have several organizations in our quay server, and we want to be able to push to all of them. Is there a way to have multiple auth keys in the same config.json file? Something like:

{
    "auths": {
        "quay.domain.com/repository/repo1": {
            "auth": "token1"
        },
        "quay.domain.com/repository/repo2": {
            "auth": "token2"
        },
        "quay.domain.com/repository/repo3": {
            "auth": "token3"
        }
    }
}