Configure Your Development Host and Kubernetes Cluster

  1. On your development host, use the docker login command to log in to Oracle Container Registry.
    docker login container-registry.oracle.com
    At the prompt, enter the following:
    • username: Enter the username you use to sign in to the Oracle Container Registry web interface. This example uses john.smith@example.com.

    • password: Enter the auth token you previously generated and saved.
    Username: john.smith@example.com
    Password: auth token
    Login Succeeded!

    If you are using docker, the docker login operation creates or updates the $HOME/.docker/config.json file with the auth token you provided when you were prompted for your password. You now can use docker to access and pull TimesTen container images from Oracle Container Registry to your local development host.

    If you are using podman, the credentials may be stored in a different location. See https://docs.podman.io/en/v4.3/markdown/podman-login.1.html.

  2. (Optional): Confirm the credentials are stored in the config.json file. This example assumes the credentials are located in $HOME/.docker/config.json.
    cat $HOME/.docker/config.json
    The output contains the auth token for container-registry.oracle.com.
    {
            "auths": {
                    "container-registry.oracle.com": {
                            "auth": "z1SbLO4JgwqzLEn1ZxJ"}
                    
                     }
    }
  3. Pull the TimesTen container image from Oracle Container Registry.
    docker pull container-registry.oracle.com/timesten/timesten:22.1.1.34.0
  4. Create the image pull secret. This example creates the sekret secret. You can use any name.
    kubectl create secret generic sekret \
    --from-file=.dockerconfigjson=$HOME/.docker/config.json \
    --type=kubernetes.io/dockerconfigjson
  5. (Optional): Confirm the Secret is created in your Kubernetes cluster.
    kubectl get secrets
    NAME                               TYPE                             DATA   AGE
    sekret                             kubernetes.io/dockerconfigjson   1      1d
    

    For more information, see Pulling Images from Registry during Deployment in the Kubernetes documentation.

  6. Save the name of the image pull secret. You need it later.

Congratulations! You obtained a TimesTen container image from Oracle Container Registry.

Next Steps

Proceed to Obtain TimesTen YAML Manifest Files and Helm Charts.