-
Notifications
You must be signed in to change notification settings - Fork 150
How to: Add Registries
Panamax supports adding secure (https) and insecure (http) registries, as well as registries with basic auth and certificate authority. Based on the type of registries and authentication method (if any) can determine how to set it up in Panamax.
When installing Panamax, along with CPU and RAM allocation, you can set whether you want to connect to insecure registries. By default, this option is set to NO, which matches the default setting for the docker daemon. With this option set to NO, docker doesn't allow access to any registry with http. To allow for legacy insecure registry access, select Y during the Panamax installer setup. To change your setting, run $ panamax
and select reinstall or panamax reinstall --insecure-registry
from a command prompt.
No action is needed.
Add your .pem file to CoreOS.Following these steps:
- In a terminal window:
$ panamax ssh
- Complete the setup following these instructions.
- Restart docker daemon:
$ sudo systemctl restart docker.service
- Test your connection:
$ curl https://your_registry_endpoint/v1/_ping
- returns json description blob
- Follow instructions for either Certificate Authority or Self-Signed Certificate above
$ panamax ssh
-
$ docker login -e your_email.com -u your_username -p your_password https://your_registry_endpoint
- returnsLogin Succeeded
-
$ sudo cp /home/core/.dockercfg /
- Important: When Panamax attempts to pull, it will look here (/) for credentials.
This gives the docker daemon your creds and registry endpoint. Within Panamax, you now can use the search command filter to directly access a secure repository. You can repeat this for as many secure registries you have.
Panamax now supports a search command filter to allow you to enter the absolute URI to your image in a private registry or a docker private repository. For example, to use the image my_private_repo/ubuntu:14.04
use the !=
command in the search control to specific the absolute path to your image:
!=my_domain.com/my_private_repo/ubuntu:14.04
Panamax will confirm your selection by displaying the image endpoint. To run the image, simply click the Run Image button to add it to your Panamax application. Be sure to check the journal output for the service to ensure no errors occurred.
NOTE: If your repository is behind basic auth, or needs certificate authority, be sure to read Registries with Basic Authorization and Certificates for instructions on how to add those to your Panamax install.
- The Panamax project is provided under the Apache 2.0 license by CenturyLink