dehaze

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 Hub

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 registry

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: gcr.io/spaceuptech/basic-service (more details)
  • Amazon Container Registry: <aws_account_id>.dkr.ecr.<region>.amazonaws.com/basic-service (more details)

Specify a private image

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

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

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

Docker image private

Have a technical question?

Improve the docs!