Will setting docker --storage-opt be deprecated?

0

My batch jobs depend on increasing the disk space available to docker by setting --storage-opt in the launch template. According to https://aws.amazon.com/premiumsupport/knowledge-center/increase-default-ecs-docker-limit this setting actually only applies to Amazon Linux 1 AMIs, which will soon be deprecated:

Important: This article is applicable if you're using Amazon Linux 1 AMIs to launch container instances in your ECS cluster. Amazon Linux 2 AMIs use the Docker overlay2 storage driver, which gives you a base storage size of the space left on your disk. Amazon Linux 1 will no longer be supported after December 31, 2020.

I guess this means I am using a v1 AMI; how then do I select a v2 AMI? I have never manually selected an AMI, I always use the defaults; in which case I am surprised that a soon-to-be-deprecated AMI is still the default.

4TufZB
asked 3 years ago364 views
2 Answers
0

It seems the reason this is occurring is because M4 instances use an Amazon Linux 1 AMI by default. It is possible to set the AMI to a v2 AMI in the Batch compute environment setup -- you need to look up the specific AMI for your region though.

It seems some instance types automatically pick a v2 AMI by default; hopefully this will be the case for M4 instances in the future as well.

4TufZB
answered 3 years ago
0

note that with the recent support for AL2, you don't need to look it up anymore - just specify AL2

AWS
answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions