• Stars
    star
    152
  • Rank 244,685 (Top 5 %)
  • Language
    Dockerfile
  • License
    MIT No Attribution
  • Created over 4 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Dockerfiles for Amazon Corretto Official images.

Corretto Docker Build Status

Master repository where Dockerfiles for Amazon Corretto are hosted. These docker files are used to build images for Amazon Corretto Offical Images and ECR images.

Usage

The docker images are available on Amazon Corretto Official Images

To use Amazon Corretto Official Images from Docker hub run

docker pull amazoncorretto:17

The docker images are also available on Amazon ECR.

To get Corretto docker images from Amazon ECR please see Amazon Corretto's ECR Public Gallery as well as the Docker Official Images ECR Public Gallery

To use docker images from Corretto ECR Public Gallery run the following commands:

docker pull public.ecr.aws/amazoncorretto/amazoncorretto:17
docker run -it public.ecr.aws/amazoncorretto/amazoncorretto:17 /bin/bash

You can see the list of available images by going to: https://gallery.ecr.aws/amazoncorretto/amazoncorretto

Supported Tags

See https://hub.docker.com/_/amazoncorretto

Building

To build the docker images, you can use the following command.

docker build -t amazon-corretto-{major_version} -f ./{major_version}/{jdk|jre|slim}/{al2|alpine|debian}/Dockerfile .

Security

If you would like to report a potential security issue in this project, please do not create a GitHub issue. Instead, please follow the instructions here or email AWS security directly.

Why does security scanner show that a docker image has a CVE?

⚠️ If you are using a Corretto Docker image with an AL2 guest, then Amazon’s ECS scanning function can result in a ALAS2-2021-1731 notification. However, there is no reason to update the Corretto application within Docker. You can safely ignore this ALAS. Once the next Corretto quarterly release is posted, currently scheduled for January 19, 2022, the alarm condition will be satisfied. This notice only affects the following Corretto Docker images with AL2 in the Docker ECR:


If a security scanner reports that an amazoncorretto image includes a CVE, the first recommended action is to pull an updated version of this image.

If no updated image is available, run the appropriate command to update packages for the platform, ie. run "apk -U upgrade" for Alpine or "yum update -y --security" for AmazonLinux in your Dockerfiles or systems to resolve the issue immediately.

If no updated package is available, please treat this as a potential security issue and follow these instructions or email AWS security directly at [email protected].

It is the responsibility of the base docker image supplier to provide timely security updates to images and packages. The amazoncorretto images are automatically rebuilt when a new base image is made available, but we do not make changes to our Dockerfiles to pull in one-off package updates. If a new base image has not yet been made generally available by a base docker image maintainer, please contact that maintainer to request that the issue be addressed.

Note that there are multiple reasons why a CVE may appear to be present in a docker image, as explained in the docker library FAQs.

More Repositories

1

corretto-8

Amazon Corretto 8 is a no-cost, multi-platform, production-ready distribution of OpenJDK 8
Java
2,109
star
2

corretto-11

Amazon Corretto 11 is a no-cost, multi-platform, production-ready distribution of OpenJDK 11
Java
668
star
3

hotpatch-for-apache-log4j2

An agent to hotpatch the log4j RCE from CVE-2021-44228.
Java
493
star
4

amazon-corretto-crypto-provider

The Amazon Corretto Crypto Provider is a collection of high-performance cryptographic implementations exposed via standard JCA/JCE interfaces.
Java
228
star
5

corretto-17

Amazon Corretto 17 is a no-cost, multi-platform, production-ready distribution of OpenJDK 17
Java
214
star
6

corretto-8-docker

Dockerfiles for Amazon Corretto 8
196
star
7

heapothesys

Heapothesys /hɪˈpɒθɪsɪs/ is a heap allocation JVM benchmark developed by the Amazon Corretto team.
Java
170
star
8

corretto-jdk

Corretto JDK tracks the latest upstream OpenJDK commits.
Java
147
star
9

corretto-21

Java
67
star
10

corretto-11-docker

Dockerfiles for Corretto 11
51
star
11

corretto-jmc

A build of JDK Mission Control (JMC) by the Corretto team.
Java
26
star
12

corretto-18

Amazon Corretto 18 is a no-cost, multi-platform, production-ready distribution of OpenJDK 18
Java
19
star
13

corretto-20

Amazon Corretto 20 is a no-cost, multi-platform, production-ready distribution of OpenJDK 20
Java
16
star
14

corretto-19

Amazon Corretto 19 is a no-cost, multi-platform, production-ready distribution of OpenJDK 19
Java
12
star
15

corretto-22

Java
7
star
16

samples

Corretto Samples
Java
4
star
17

corretto-downloads

2
star
18

corretto-23

Java
1
star