Private Image Registry
Introduction
Bunnyshell supports connecting also other image registries to your organization, as long as they are Docker compatible and can be connected with a username and a password/token.
To check if your registry can be connected to Bunnyshell, you can run the following docker commands. If they work you can extract the arguments and use them in Bunnyshell connection form and it should also work.
docker login -u <username> -p <password/token> <host>
- Replace
<username>
,<password/token>
and<host>
with your values - This should be successful and return something like "Login Succeeded"
- Replace
docker pull alpine:latest
- this is just a (small) test image, you are pulling it from DockerHub and you will push it in your registry; you can use any other image for the test
docker tag alpine:latest <host>/<repo-name>/test-image:latest
- this just creates another alias for the
alpine:latest
image - the new alias should be exactly the full URL of an image in your image registry
- Bunnyshell assumes there is a
<repo-name>
, at least a path prefix; if your registry has also a fixed path prefix and then the actual<repo-name>
, when connecting to Bunnyshell you should include the path prefix in the Repository Name field test-image:latest
is just a name and tag for the image which will be stored in your registry
- this just creates another alias for the
docker push <host>/<repo-name>/test-image:latest
- this should be successful and you should see the image saved in your registry
Connect your Private Registry
In the Bunnyshell interface
- In the sidebar click Integrations and select Container Registries
- Click the Connect container registry button and select Private Registry
- A new window will pop-up, where you will have to provide the following information
- Name: pick a name for your registry when you connect it to Bunnyshell
- Registry URL: the
<host>
from the above paragraph - Repository Name: the
<repo-name>
from the above paragraph - Username: the
<username>
from the above paragraph - Password/Token: the
<password/token>
from the above paragraph
When connecting Bunnyshell will also try to push a small test image named bunnyshell-integration-test:scratch
to make sure the provided credentials are correct and have enough permissions.
Bunnyshell uses by default Docker BuildKit for building images, but it can also use Kaniko. Sometimes there are permission differences between Docker BuildKit and Kaniko, so to make sure the connected registry really works with Bunnyshell, we recommend you to make a build in Bunnyshell with Kaniko using the image registry. If you plan to use BuildKit or your custom docker builder, then is no need to make the Kaniko test.
Updated 5 days ago