Specifying a Docker Image

To use Space Cloud’s Deployments Module you need to specify a docker image to deploy.

Currently, Space Cloud can only deploy containerized applications.

Specify an image from Docker Hublink

In the add service form, you’ll see the following config.

Docker image public

All you need to do is supply the docker image name, and that’s it. For eg. spaceuptech/basic-service.

Space Cloud searches for the image on Docker Hub by default.

Specify an image from another registrylink

In some cases, you may want to use a docker registry apart from Docker Hub. This is especially true when using the registry provided by a cloud vendor. In this case, you prefix the URL of the registry to the name of the docker image.

Here are a few examples of spaceuptech/basic-service being on different registries.

  • Docker Hub: spaceuptech/basic-service
  • Google Container Registry:<gcp_project_id>/basic-service (more details)
  • Amazon Container Registry: <aws_account_id>.dkr.ecr.<region> (more details)

Pulling a private image from AWS Elastic Container Registry to a Kubernetes cluster outside of AWS is not currently supported.

Specify a private imagelink

You might want to create private images for the more sensitive applications. Space Cloud gives you the provision to pull private images as well.

Create a docker secretlink

The first step is creating a docker secret from the Secrets section. You are required to provide the following:

  • Name: The name to use while referring to the secret.
  • User Name: The username used to login into the registry.
  • Password: The password used to login into the registry.
  • Registry Url: The URL of the registry.

Create Docker Secret

Apply the docker secretlink

Once you have the secret ready, use it while creating/updating the service.

Docker image private

You do not need to provide a docker secret when using a docker registry in the same cloud vendor. For example, when using Google Kubernetes Engine, you need not provide a docker secret when pulling images from Google Container Registry.

Have a technical question?

Improve the docs!