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
demandé il y a 3 ans374 vues
2 réponses
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
répondu il y a 3 ans
0

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

AWS
répondu il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions