-
Notifications
You must be signed in to change notification settings - Fork 299
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
art-compose and hosting a docker repository not working together. #86
Comments
@aram535 can you share your |
It's the auto-generated one with just the new set of keys.
|
@aram535 Thank you for sharing config. You are missing one step. add following entry in your
then try to pull docker image using
|
Thank you for that update.... I do have the host entry but not for 127.0.0.1 it's pointing to the 10.x address. 10.15.53.21 artifactory.company.com docker.artifactory.company.com docker-remote.artifactory.company.com now I see that if I do:
Is that my problem with accessing this repository over the internet with authentication? Do I need to get a star certificate for *.artifactory.company.com? |
Your |
Public Server Name is set, changed Tomcat to Nginx When I try to login I still get the
|
change the public server name to |
Same cert error. |
ah oh, I think it broke the web ui when I changed the servername to company.com. |
did it fix your issue? |
no same cert error for docker and I have lost access to the web portal. I "think" I can change the public server name back using API, correct? |
Ok recovered. I think the problem is that pem/key that I'm using are *.company.com. Quenstion would be how do you apply one star cert to artifactory.company.com and another star cert to *.artifactory.company.com? |
If your cert is valid for
|
@aram535 Are you able to resolve your issue? |
Sort of. Only works internally (insecure mode). I cannot figure out how to have both a *.company.com cert for the UI and the *.artifactory.company.com for docker. |
@aram535 AFAIK you can not achieve this with same certs. You have a cert for the subdomain |
Sorry. I didn't mean to do it with one cert. I'm trying to setup two different certs one for artifactory.company.com (*.company.com) and one for *.artifactory.company.com,, but the HTTPD setup only allows one cert to be applied to the configuration for Nginx. |
@aram535 Any update on this issue? |
Two part ... adding the docker.artifactory.company.com to the local host file worked for an "insecure" connection. I still haven't been figure out how to apply a second certificate, a star cert, to cover both artifactory.company.com as well as *.artifactory.company.com. |
@aram535 You can try something like this -> https://stackoverflow.com/questions/14434120/nginx-set-multiple-server-name-with-ssl-support |
Any update on this issue, guys? I am having a similar issue pulling from
where I get the error message:
So, I have created a DNS entry for
that points to
Attempting to log into this registry/ pull images from the registry gives the error message:
My nginx configuration is as follows:
Thanks, Sean |
BTW, I think that I have solved this by amending the server_name part of the nginx configuration to:
|
I have tried all of the above even with semi-similar DNS tricks, however, I think passing through Azure as my auth proxy is wrecking havoc with the certs and DNS. Funny enough everything else seems to work fine, it seems docker is the only one that has issues. |
@mcgurksean how did you manage to get artifactory from overwriting your nginx config file? Every time I restart my docker-compose I have to re-edit the file (at least it works internally) but I cannot figure out how to stop it from re-generating the config file. |
@aram535 You can skip re-generating the config file by setting SKIP_AUTO_UPDATE_CONFIG=true in nginx service. |
@jainishshah17 thanks. Do you happen to know if that's a ENV variable I can through to the docker instance? I used art-compose tool to generate my docker-compose.yml file. |
@aram535 - is this still relevant? |
@eldada AFAIK it's still a manual change and you have to change the "auto-generate nginx config" in the app. Other than that it works. |
I have a 3 note setup (by using art-compose) and then hosting a docker repository in the resulting artifactory instance. I can login to the docker repo if I point the docker client directly at artifactory but if I try to use the nginx the authentication doesn't seem to be making it across and it gives a strange error about v2 docker not supported.
I'm duplicating here but the original question is on slashdot.
We're running artifactory
6.0.26.0.3 on-perm as a container (along with nginx and postgresql) as described in running artifactory as a docker instance.I have set up the basic "docker" instance.
Locally on the same machine as the artifactory container:
However, using the nginx port:
I also tried using ~/.docker/config.json with the auth information (base64) however it still giving me the same error.
artifactory.log shows:
access.log shows:
request.log shows:
nginx access.log:
The text was updated successfully, but these errors were encountered: