Create a custom container
These instructions assume that you know how to use Docker and Amazon Elastic Container Registry (Amazon ECR). For more information about Amazon ECR, see the Amazon ECR User Guide.
Prerequisites
-
The IAM identity (use or role) that you use to perform these actions has the correct permissions to use Amazon ECR
-
Docker is installed on your local system
To create a custom container
Create your
Dockerfile
.A
Dockerfile
to run AWS SimSpace Weaver apps starts with the Amazon Linux 2 image in Amazon ECR.# parent image required to run AWS SimSpace Weaver apps FROM public.ecr.aws/amazonlinux/amazonlinux:2
-
Build your
Dockerfile
. -
Upload your container image to Amazon ECR.
Note
If you get an
AccessDeniedException
error when you try to upload your container image to Amazon ECR, your IAM identity (user or role) might not have the necessary permissions to use Amazon ECR. You can attach theAmazonEC2ContainerRegistryPowerUser
AWS managed policy to your IAM identity and try again. For more information about how to attach a policy, see Adding and removing IAM identity permissions in the AWS Identity and Access Management User Guide.