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

aci: accessing private docker registry on non-standard port with ACI

Open yugangw-msft opened this issue 5 years ago • 10 comments

Ported from user feedback.

az container create\
        --name testcontainer\
        --resource-group test-rg
        --image private.example.com:5000/dockerimage:build94\
        --ports 80\
        --ip-address Private\
        --registry-login-server private.example.com:5000\
        --registry-username reguser\
        --registry-password ***

fails with an error of The server 'private.example.com:5000' in the 'imageRegistryCredentials' of container group 'testcontainer' is invalid. It should be a valid host name without protocol

Linked issue at ACR was closed as we determined the issue is no longer ACR related.

//cc: @kawaja //cc: @mmacy, @neilpeterson, @seanmck @dlepow

yugangw-msft avatar Dec 04 '19 03:12 yugangw-msft

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc

ghost avatar Dec 04 '19 04:12 ghost

Including ACI PMs: /cc: @dkkapur, @macolso

dlepow avatar Dec 06 '19 18:12 dlepow

I'm also facing this issue. We have an old registry running on port 5000. And now due to this issue/limitation with Azure CLI, we have to expose the registry on 443 and change everywhere.

RavirahulPadmanabhan avatar Sep 28 '20 13:09 RavirahulPadmanabhan

Any update on this?

I have no trouble using Azure App Services with my private container registry. It looks like the issue is with the serverside validation of the template's imageRegistryCredentials property. I encounter the same issue when trying to create an ACI via the web portal.

dyllan-to-you avatar Nov 03 '20 12:11 dyllan-to-you

+1 This is causing me issues trying to access a private GitLab CI repository on default port of 5050.

NBroomfield avatar Dec 16 '20 13:12 NBroomfield

Any update on this issue?

alessap avatar Nov 08 '22 13:11 alessap

I can't believe that this is still an issue.

joshuaswickirl avatar Jul 29 '24 16:07 joshuaswickirl

Is ACI PM sleeping? No one responding on this

devops4you90 avatar Aug 19 '24 23:08 devops4you90

@yugangw-msft can you check this with msft pg?

devops4you90 avatar Aug 19 '24 23:08 devops4you90

ACI does not support private registries other than ACR (via Trusted Services), and ACR doesn't support custom port. It makes no sense to support adding colon to login server input.

kennethgp avatar Aug 29 '24 19:08 kennethgp