dockercloud-cli icon indicating copy to clipboard operation
dockercloud-cli copied to clipboard

dockercloud-cli [1.0.8] does not use DOCKER_CONFIG

Open schmunk42 opened this issue 8 years ago • 1 comments

I tried to run docker-cloud in a container, with a custom config file location for the Docker client under:

DOCKER_CONFIG=/roj/config

While I can do a docker login, including the information written to the above file, it looks like docker-cloud does not respect these settings.

I have to use the env vars DOCKERCLOUD_USERand DOCKERCLOUD_PASS.

schmunk42 avatar Jun 20 '17 11:06 schmunk42

That's true. The path of the config file is hard-coded in the python SDK at the moment: https://github.com/docker/python-dockercloud/blob/3df41bf76038e3ee7b03da7b110896f35ec1398d/dockercloud/init.py#L31

Other than setting DOCKERCLOUD_USER and DOCKERCLOUD_PASS, you can also try to use the container version: alias docker-cloud="docker run -it -v /roj/config/.docker:/root/.docker:ro --rm dockercloud/cli"

tifayuki avatar Jun 20 '17 17:06 tifayuki