Deploy Base Image

Learn to deploy Docker images in Code Ocean.

You can deploy Docker images as starter environments for compute capsules. The starter environments are also called base images and will be available for users in their capsule's environment editor. The starter environments may include different machine languages, versions of languages and IDEs, software packages, etc., so users can start customizing their ideal compute environments efficiently.

You can deploy a recommended base image or switch tags to build a custom image.

Click on +Add Starter Environment and the ‘Add Starter Environment’ dialog will appear.

Deploy Recommend Base Image

The recommended tab contains the list of the base images we currently provide. You can select the images and click on the Deploy button to deploy the recommended base image.

Deploy Custom Image

Complete the fields and click Deploy to deploy the image (see an explanation about each field below).

Fill fields from existing image

The system keeps a list of images deployed in each VPC account. Clicking on it will show all the deployed image names.

Name (required, editable)

The name of the image. Any name that reflects the language or purpose of the image is suitable.

Docker Image (required)

The URL of the image to pull. Any public Docker image URL or any base image from the Code Ocean Docker registry starting with registry.codeocean.com works. For private image URLs, contact [email protected]

Version (required, editable)

The version of the image so you can keep track of future updates. Different versions of images under the same name will be grouped together in the Environment Editor.

Language (required, editable)

The programming language tag for this image. The language tag can be used for filtering in the Environment manager.

Description (optional)

The description of this base image so end users can understand what the image is about.

Machine Type (optional)

Standard: with CPU only, GPU: with GPU.

Tags (optional)

Keywords relevant to the image such as language, version, etc., so it's easier to search the image.

  • Name + version combination must be unique

  • The docker image source of the new image must be unique

Deploying Docker Images Examples

Below are the examples of completed forms from the recommend base image:

This is an example of a Python image that runs on CPU-only instances:

Deploy Image from Capsule Environment

To create a Starter Environment from the environment of a Capsule in your deployment, select From Capsule in the Add Starter Environment menu and complete the fields as shown below.

Capsule ID

Any Capsule identifier from a private Capsule in your Code Ocean deployment i.e. not from the Open Science Library. This identifier can be found on the Capsule Metadata page.

Name

The name of the image. Any name that reflects the language or purpose of the image is suitable.

Version

The version of the image so you can keep track of future updates. Different versions of images under the same name will be grouped together in the Environment Editor.

Target Docker Image

The directory of the image in your Code Ocean deployment’s Docker Registry. By default, the Auto generate box will be checked to automatically fill this field based on the name and version you provided above.

Language

The primary language used in the environment. This determines which sample files will be generated in the environment. Other languages can be mentioned via tags (below) to aid in searching for a specific Starter Environment.

Description (optional)

The description of this base image so end users can understand what the image is about.

Machine Type

Standard: with CPU only, GPU: with GPU.

Tracking Deployment Status

After you click Deploy, you can track the deployment status in the images list.

Last updated

Was this helpful?