Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

docker-compose fails on ubuntu agent "invalid reference format" #164

Closed
sleppin opened this issue Nov 26, 2018 · 2 comments
Closed

docker-compose fails on ubuntu agent "invalid reference format" #164

sleppin opened this issue Nov 26, 2018 · 2 comments

Comments

@sleppin
Copy link

sleppin commented Nov 26, 2018

I am running a vsts-agent inside a kubernetes cluster. (microsoft/vsts-agent:ubuntu-16.04-docker-18.06.1-ce-standard).

When I try to run a build step from azure pipelines docker-compose exits with the following error:

Service 'xyz' failed to build: Error parsing reference: "microsoft/dotnet:2.1-aspnetcore-runtime AS base" is not a valid repository/tag: invalid reference format /usr/local/bin/docker-compose failed with return code: 1

The same build step executes without problems when it is run on a windows build agent.

@dakale
Copy link

dakale commented Nov 26, 2018

The multistage build syntax requires a minimum version of the docker daemon on the host (https://docs.docker.com/develop/develop-images/multistage-build/)

Are you running in AKS, some other hosted K8s service, or is this on minikube/Docker-for-Windows (with K8s orchestrator)?

You should be able to run docker info on the machine where the agent is running or just as a step in your build, and see if the server version is high enough. Im pretty sure this isnt an issue with these images but I can investigate if your server version is indeed up to date.

@sleppin
Copy link
Author

sleppin commented Nov 27, 2018

I am running kubernetes on AKS.
The problem is related to Azure/AKS#63 (comment)

Not using the multistage build syntax solved the problem.

@sleppin sleppin closed this as completed Nov 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants