Summary
Allow running docker commands with a custom DOCKER_CONFIG per stack
Detailed description
The only way to login with more than one account per registry is to use a separate docker config dir per account. It's possible to tell docker and docker compose which config to use by setting the DOCKER_CONFIG env var for the shell docker compose is run within.
I would like for it to be possible to provide a different DOCKER_CONFIG per stack, so that I may pull images from private repos using different credentials.
Alternatives considered
Considered using .env, but docker ignores it.
Summary
Allow running docker commands with a custom DOCKER_CONFIG per stack
Detailed description
The only way to login with more than one account per registry is to use a separate docker config dir per account. It's possible to tell docker and docker compose which config to use by setting the
DOCKER_CONFIGenv var for the shell docker compose is run within.I would like for it to be possible to provide a different
DOCKER_CONFIGper stack, so that I may pull images from private repos using different credentials.Alternatives considered
Considered using
.env, but docker ignores it.