Deploying Private Docker Base Images

Often, starter environments are publicly available docker images, such as the recommended starter environments that are hosted on DockerHub or the codeocean.com docker registry. Sometimes, though, you might need to create base docker images that include proprietary code, are bundled with license files or secrets, or configured in a company-specific way. These docker images cannot be hosted on public docker registries.

This section describes the process of creating a starter environment from a private docker image.

Deploy a Private Docker Image

  1. Push your docker base image to Amazon ECR. Follow instructions in this article: pushing a docker image to ECR.

    Make sure to use the AWS ECR in the same AWS account where the Code Ocean VPC is deployed.

    Note that you need permissions to create repos and push images in Amazon ECR.

  2. From the Code Ocean Admin Panel, deploy a custom image.

    For the Docker Image field, specify the ECR docker image for example aws_account_id.dkr.ecr.region.amazonaws.com/my-image:tag.