Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

d-c build fails when URL has capital letters - misleading error message #6656

Closed
xkortex opened this issue Apr 18, 2019 · 2 comments
Closed
Labels

Comments

@xkortex
Copy link

xkortex commented Apr 18, 2019

Description of the issue

docker-compose build fails when image name contains capital letters (maybe related to #1416). However, the error message returned is

ERROR: Couldn't connect to Docker daemon - you might need to run `docker-machine start default`.

when running locally or

Couldn't connect to Docker daemon at http+docker://localhost - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

if running on a drone server.

I only figured this out once I tried running

docker build -t url.com/proj/REPO_WITH_CAPS/img:latest

and got the useful message:

invalid reference format: repository name must be lowercase

Context information (for bug reports)

Output of docker-compose version

docker-compose version 1.24.0, build 0aa5906

Output of docker version

9 | Client:
10 | Version: 18.09.1-ce
11 | API version: 1.39
12 | Go version: go1.11.4
13 | Git commit: 4c52b901c6cb019f7552cd93055f9688c6538be4
14 | Built: Fri Jan 11 15:41:33 2019
15 | OS/Arch: linux/amd64
16 | Experimental: false
17 |  
18 | Server: Docker Engine - Community
19 | Engine:
20 | Version: 18.09.5
21 | API version: 1.39 (minimum version 1.12)
22 | Go version: go1.10.8
23 | Git commit: e8ff056
24 | Built: Thu Apr 11 04:10:53 2019
25 | OS/Arch: linux/amd64
26 | Experimental: false

Output of docker-compose config
(Make sure to add the relevant -f and other flags)

services:
  redacted:
    build:
      context: /home/$USER/code/REDACTED
      dockerfile: docker/redacted.docker
    container_name: redacted
    entrypoint:
    - bash
    image: url.com:1234/project/REDACTED/redacted:latest
    runtime: nvidia
    tty: true
version: '2.4'

Steps to reproduce the issue

  1. Make a compose file with capital letters in image name
  2. docker-compose build
  3. Profit

Observed result

Couldn't connect to Docker daemon at http+docker://localhost - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

Expected result

invalid reference format: repository name must be lowercase

Additional information

  • ubuntu 18.04 desktop
  • drone/dind/linux/amd64
@stale
Copy link

stale bot commented Oct 15, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 15, 2019
@ndeloof
Copy link
Contributor

ndeloof commented Oct 16, 2019

I tried to reproduce this issue with docker-compose 1.24 and got expected behaviour:
ERROR: invalid reference format: repository name must be lowercase

@ndeloof ndeloof closed this as completed Oct 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants