Docker credentials

Use these tutorials to add Docker credentials to a Saagie project, as well as modify or delete them.

The credentials used for this example are not real and will result in an error. Use your own Docker credentials when following this tutorial.

1. Add Docker credentials

Let’s add a set of Docker credentials to the project Dunder Mifflin Paper Sales.

You are in a project where you have the right to work with Docker credentials.

1.1. Navigate to your project

Start by navigating to the example project.

  1. Go to the Projects module from the primary navigation menu.

  2. Go to the Dunder Mifflin Paper Sales project.

    Navigate to your project
  3. Go to Docker credentials from the secondary navigation menu.

  4. Select the New credentials button.

    Navigate to your project’s Docker credentials

1.2. Add your Docker credentials

A panel will appear to add your credentials.

  1. Select the type of credentials. For this example, we’ll choose Docker Hub.

    If you choose private Docker registry, you’ll also need to provide the URL.
  2. Enter your username: stanley

  3. Enter your password.

  4. Select the Save button.

Add Docker credentials

Your Docker credentials are now saved in your project and can be used by jobs and custom apps.

2. Edit Docker credentials

Anytime your Docker credentials change (for example, you changed your username or password on Docker Hub), you need to update them in your project.

2.1. Navigate to Docker credentials

Navigate to your project’s Docker credentials.

  1. Go to the Projects module from the primary navigation menu.

  2. Go to the Dunder Mifflin Paper Sales project.

    Navigate to your project
  3. Go to Docker credentials from the secondary navigation menu.

  4. Open the Docker credentials you need to edit.

    Navigate to the Docker credentials to edit

2.2. Edit credentials

We need to change the type of credential from Docker Hub to a private Docker registry. Additionally, Stanley changed his username, but kept the same password.

  1. Select the dropdown for credentials type, then choose private Docker registry.

  2. Enter the name of your private Docker registry: dunder/jupyterspark:2.0

  3. Change Stanley’s username to stanleyhudson.

  4. Leave the password field blank because the password did not change.

  5. Select the Save button.

Edit Docker credentials

Your edited Docker credentials are ready to be used by jobs and custom apps.

3. Delete Docker credentials

3.1. Navigate to Docker credentials

Navigate to your project’s Docker credentials.

  1. Go to the Projects module from the primary navigation menu.

  2. Go to the Dunder Mifflin Paper Sales project.

    Navigate to your project
  3. Go to Docker credentials from the secondary navigation menu.

  4. Open the Docker credentials you need to delete.

    Navigate to the Docker credentials to delete

3.2. Delete credentials

The same panel that opened when editing your credentials will open again.

  1. This time, select the Delete credentials button.

  2. A prompt will open to confirm that you’d like to delete these credentials.

  3. Select the Delete button.

Delete Docker credentials

This set of Docker credentials has been deleted and can no longer be used.

If your Docker credentials are used by any jobs or custom apps, deleting them might cause problems for those jobs or apps.