Docker Community Forums

Share and learn in the Docker community.

Docker-compose build hangs on Sending auth config //index.docker.io/v1/'


(Ronaldclambert) #1

I am hoping to get some guidance on how to address an apparent docker-compose hang when attempting to build a container. I am not attempting to push the container anywhere, just build it on the local windows 10 machine.

I can successfully build the container with “Docker build”, however, as I understand it there are benefits in using docker-compose as parameters can be set in .yml files.

I am very new to dockers and leaning on visual studio 2017 docker support. After encounter the hang I did successfully build the container on the command line with “docker build”, but docker-compose build hangs, apparently trying to send credentials. Details follow:

Docker Version
Client:
Version: 18.03.1-ce
API version: 1.37
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:12:48 2018
OS/Arch: windows/amd64
Experimental: false
Orchestrator: swarm

Server:
Engine:
Version: 18.03.1-ce
API version: 1.37 (minimum version 1.24)
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:21:42 2018
OS/Arch: windows/amd64
Experimental: false
Docker-compose version
docker-compose version 1.21.1, build 7641a569
docker-py version: 3.2.1
CPython version: 3.6.4
OpenSSL version: OpenSSL 1.0.2k 26 Jan 2017

Compose Build hangs at docker.api.build._set_auth_headers: Sending auth config per verbose output.

The full verbose output to the hang is:

docker-compose --verbose build
compose.config.config.find: Using configuration files: .\docker-compose.yml,.\docker-compose.override.yml
docker.utils.config.find_config_file: Trying paths: [‘C:\Users\ron\.docker\config.json’, ‘C:\Users\ron\.dockercfg’]
docker.utils.config.find_config_file: Found file at path: C:\Users\ron.docker\config.json
docker.auth.load_config: Found ‘auths’ section
docker.auth.parse_auth: Auth data for ___index.docker.io/v1/ is absent. Client might be using a credentials store instead.
docker.auth.load_config: Found ‘credsStore’ section
urllib3.connectionpool._make_request: __localhost:None “GET /v1.30/version HTTP/1.1” 200 617
compose.cli.command.get_client: docker-compose version 1.21.1, build 7641a569
docker-py version: 3.2.1
CPython version: 3.6.4
OpenSSL version: OpenSSL 1.0.2k 26 Jan 2017
compose.cli.command.get_client: Docker base_url: http+docker://localnpipe
compose.cli.command.get_client: Docker version: Platform={‘Name’: ‘’}, Components=[{‘Name’: ‘Engine’, ‘Version’: ‘18.03.1-ce’, ‘Details’: {‘ApiVersion’: ‘1.37’, ‘Arch’: ‘amd64’, ‘BuildTime’: ‘2018-04-26T07:21:42.000000000+00:00’, ‘Experimental’: ‘false’, ‘GitCommit’: ‘9ee9f40’, ‘GoVersion’: ‘go1.9.5’, ‘KernelVersion’: ‘10.0 17134 (17134.1.amd64fre.rs4_release.180410-1804)’, ‘MinAPIVersion’: ‘1.24’, ‘Os’: ‘windows’}}], Version=18.03.1-ce, ApiVersion=1.37, MinAPIVersion=1.24, GitCommit=9ee9f40, GoVersion=go1.9.5, Os=windows, Arch=amd64, KernelVersion=10.0 17134 (17134.1.amd64fre.rs4_release.180410-1804), BuildTime=2018-04-26T07:21:42.000000000+00:00
compose.service.build: Building websocketpractice
compose.cli.verbose_proxy.proxy_callable: docker build <- (path=‘C:\Users\ron\source\repos\WebSocketPractice’, tag=‘websocketPracticeContainer’, rm=True, forcerm=False, pull=False, nocache=False, dockerfile=‘WebSocketPractice\Dockerfile’, cache_from=None, labels=None, buildargs={}, network_mode=None, target=None, shmsize=None, extra_hosts=None, container_limits={‘memory’: None}, gzip=False, isolation=None, platform=None)
docker.api.build._set_auth_headers: Looking for auth config
docker.auth.resolve_authconfig: Using credentials store “wincred”
docker.auth._resolve_authconfig_credstore: Looking for auth entry for ‘https://index.docker.io/v1/
docker.api.build._set_auth_headers: Sending auth config (‘https://index.docker.io/v1/’)

Thank You


(Featherbelly) #2

Try adding any large files/folders to .dockerignore.


(Idealmike) #3

I’m having the same problem. Also, I can successfully docker-compose build the same project on Ubuntu - I only have this problem on Windows.

Have you had any luck solving this problem?

One poster suggested a dockerignore file, but since the same project builds with docker build, and with docker-compose build on Ubuntu, not sure how that can help. As far as I know, I have no large files in the build context anyway.