The doc shows an ACR image being downloaded with:
resources:
- container: my_private_container
image: private:ubuntu14
endpoint: my_acr_connection
But that doesn't work. I've also tried.
resources:
- container: my_private_container
image: ubuntu14
endpoint: my_acr_connection
That too, didn't work.
resources:
- container: my_private_container
image: myregistryname.azurecr.io/ubuntu14
endpoint: my_acr_connection
That didn't work either.
Can we please get updated docs with the proper way to do this?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
We are hitting the same thing--we see the auth work but then see:
2018-09-14T19:21:00.6228543Z ##[command]/usr/bin/docker pull ***/***/ci-builder
2018-09-14T19:21:01.5791808Z invalid reference format
I hear that it's a server bug. @TingluoHuang is working on a fix.
Ting finished this work and he doc'd it as well.
Where?
Thanks for the updated docs. That's great. I wasn't paying attention to them and tried writing out the image name a different way. The really odd thing was that the build went on for nearly 3 minutes, downloading docker images before saying "oh, I can't download this image. So what was it taking nearly 3 minutes downloading??
2018-10-01T14:41:29.7521479Z ##[section]Starting: Initialize container
2018-10-01T14:41:29.7963375Z ##[command]/usr/bin/docker version --format '{{.Server.Version}}'
2018-10-01T14:41:36.0935104Z '18.06.1-ce'
2018-10-01T14:41:36.1873792Z Docker daemon version: '18.06.1-ce'
2018-10-01T14:41:36.1874135Z ##[command]/usr/bin/docker version --format '{{.Client.Version}}'
2018-10-01T14:41:36.3673345Z '18.06.1-ce'
2018-10-01T14:41:36.4282663Z Docker client version: '18.06.1-ce'
2018-10-01T14:41:36.4387276Z ##[command]/usr/bin/docker login --username "***" --password-stdin ***
2018-10-01T14:41:37.4764700Z WARNING! Your password will be stored unencrypted in /home/vsts/.docker/config.json.
2018-10-01T14:41:37.4767530Z Configure a credential helper to remove this warning. See
2018-10-01T14:41:37.4770003Z Login Succeeded
2018-10-01T14:41:37.4773515Z https://docs.docker.com/engine/reference/commandline/login/#credentials-store
2018-10-01T14:41:37.4773978Z
2018-10-01T14:41:37.4847138Z ##[command]/usr/bin/docker pull ***.azurecr.io/linux-buildagent
2018-10-01T14:41:37.6077944Z Using default tag: latest
2018-10-01T14:41:38.3339101Z latest: Pulling from linux-buildagent
2018-10-01T14:41:38.3350003Z 3b37166ec614: Pulling fs layer
2018-10-01T14:41:38.3352284Z 504facff238f: Pulling fs layer
2018-10-01T14:41:38.3355099Z ebbcacd28e10: Pulling fs layer
2018-10-01T14:41:38.3357898Z c7fb3351ecad: Pulling fs layer
2018-10-01T14:41:38.3358161Z 2e3debadcbf7: Pulling fs layer
2018-10-01T14:41:38.3358598Z 9f2ad8e157ee: Pulling fs layer
2018-10-01T14:41:38.3359210Z 566f1659b41b: Pulling fs layer
2018-10-01T14:41:38.3359652Z f5b7154aa88c: Pulling fs layer
2018-10-01T14:41:38.3359859Z 707a2dec2ce7: Pulling fs layer
2018-10-01T14:41:38.3361368Z c7fb3351ecad: Waiting
2018-10-01T14:41:38.3363127Z 2e3debadcbf7: Waiting
2018-10-01T14:41:38.3364358Z 9f2ad8e157ee: Waiting
2018-10-01T14:41:38.3364499Z 566f1659b41b: Waiting
2018-10-01T14:41:38.3364731Z f5b7154aa88c: Waiting
2018-10-01T14:41:38.3364892Z 707a2dec2ce7: Waiting
2018-10-01T14:41:39.0409889Z 504facff238f: Verifying Checksum
2018-10-01T14:41:39.0411020Z 504facff238f: Download complete
2018-10-01T14:41:39.0732426Z ebbcacd28e10: Download complete
2018-10-01T14:41:39.5940698Z c7fb3351ecad: Verifying Checksum
2018-10-01T14:41:39.5944251Z c7fb3351ecad: Download complete
2018-10-01T14:41:39.6315914Z 2e3debadcbf7: Verifying Checksum
2018-10-01T14:41:39.6316404Z 2e3debadcbf7: Download complete
2018-10-01T14:41:40.2497516Z 566f1659b41b: Verifying Checksum
2018-10-01T14:41:40.2497744Z 566f1659b41b: Download complete
2018-10-01T14:41:41.7367870Z 9f2ad8e157ee: Verifying Checksum
2018-10-01T14:41:41.7373722Z 9f2ad8e157ee: Download complete
2018-10-01T14:41:42.0922525Z 3b37166ec614: Verifying Checksum
2018-10-01T14:41:42.0924120Z 3b37166ec614: Download complete
2018-10-01T14:41:45.0974521Z 3b37166ec614: Pull complete
2018-10-01T14:41:45.2681394Z 504facff238f: Pull complete
2018-10-01T14:41:45.3981078Z ebbcacd28e10: Pull complete
2018-10-01T14:41:45.5651699Z c7fb3351ecad: Pull complete
2018-10-01T14:41:45.7011733Z 2e3debadcbf7: Pull complete
2018-10-01T14:41:46.5805722Z 9f2ad8e157ee: Pull complete
2018-10-01T14:41:46.7723174Z 566f1659b41b: Pull complete
2018-10-01T14:42:03.8324390Z 707a2dec2ce7: Verifying Checksum
2018-10-01T14:42:03.8324632Z 707a2dec2ce7: Download complete
2018-10-01T14:42:41.7321510Z f5b7154aa88c: Verifying Checksum
2018-10-01T14:42:41.7321741Z f5b7154aa88c: Download complete
2018-10-01T14:43:41.4930879Z f5b7154aa88c: Pull complete
2018-10-01T14:44:08.0670617Z 707a2dec2ce7: Pull complete
2018-10-01T14:44:08.0919038Z Digest: sha256:458846ae8a2a59273f31cbd6de7a7c8fc3ebd227f65a866075063734b2ade5ce
2018-10-01T14:44:08.1580910Z Status: Downloaded newer image for ***.azurecr.io/linux-buildagent:latest
2018-10-01T14:44:08.2324584Z ##[command]/usr/bin/docker network create vsts_network_96892c2fa5e2494f8dfd302b3aeb0ff1
2018-10-01T14:44:08.3815483Z 6e855108a517e9f50680bd7ce35eba51f442c46e8525e008c684c29692ba0931
2018-10-01T14:44:08.4759764Z ##[command]/usr/bin/docker create --name xenial_linuxbuildagent --network=vsts_network_96892c2fa5e2494f8dfd302b3aeb0ff1 -v /var/run/docker.sock:/var/run/docker.sock -v "/home/vsts/work/1":"/__w/1" -v "/home/vsts/work/_temp":"/__w/_temp" -v "/opt/hostedtoolcache":"/__t" -v "/home/vsts/work/_tasks":"/__w/_tasks" -v "/home/vsts/agents/2.140.2/externals":"/__a/externals":ro -v "/home/vsts/work/.taskkey":"/__w/.taskkey" linux-buildagent "/__a/externals/node/bin/node" -e "setInterval(function(){}, 24 * 60 * 60 * 1000);"
2018-10-01T14:44:08.5827031Z Unable to find image 'linux-buildagent:latest' locally
2018-10-01T14:44:08.9423900Z Error response from daemon: pull access denied for linux-buildagent, repository does not exist or may require 'docker login'
2018-10-01T14:44:09.0199905Z ##[command]/usr/bin/docker logout ***
2018-10-01T14:44:09.0910601Z Removing login credentials for ***.azurecr.io
2018-10-01T14:44:09.1191286Z ##[error]Exit code 1 returned from process: file name '/usr/bin/docker', arguments 'create --name xenial_linuxbuildagent --network=vsts_network_96892c2fa5e2494f8dfd302b3aeb0ff1 -v /var/run/docker.sock:/var/run/docker.sock -v "/home/vsts/work/1":"/__w/1" -v "/home/vsts/work/_temp":"/__w/_temp" -v "/opt/hostedtoolcache":"/__t" -v "/home/vsts/work/_tasks":"/__w/_tasks" -v "/home/vsts/agents/2.140.2/externals":"/__a/externals":ro -v "/home/vsts/work/.taskkey":"/__w/.taskkey" linux-buildagent "/__a/externals/node/bin/node" -e "setInterval(function(){}, 24 * 60 * 60 * 1000);"'.
2018-10-01T14:44:09.1225445Z ##[section]Finishing: Initialize container
Once I fixed my problem to match your documentation, it worked. But it took about 30 seconds longer coming from ACR than it took coming from docker hub, which is the opposite of what I was hoping for.
I wonder if an ACR repository in a different azure region would improve performance. What region are the OSS builds happening in?
for your account, it's in azure CUS region
Thanks. Adding a replication region to South Central US brought ACR perf up to Docker Hub levels -- but sadly, not beyond them. I guess I need to accept the 2:27 time to download the image with each linux build.
@AArnott we are working on pre-cache most of the populate linux container base images onto the Hosted Ubuntu 1604 pool. i think after that work is done, your docker pull will get faster. :D
Most helpful comment
@AArnott we are working on pre-cache most of the populate linux container base images onto the Hosted Ubuntu 1604 pool. i think after that work is done, your docker pull will get faster. :D