Removal of Docker Runtime from Amazon Elastic Kubernetes Service

DevOps Archaeologist
1 min readAug 30, 2022
  1. The most recent version of Amazon EKS is v1.23.
    a.It has a default option for switching between docker runtime to containerd.
    b. Same is applicable for Kubernetes v1.21
  2. For EKS, v1.24 (to be released)
    a. Runtime is set to containerd only
    b. Runtime Docker removed

ARE YOU SCREWED ???

1. For Bottlerocket AMI, containerd is the container runtime
2. For Fargate, containerd is the container runtime
3. All your container images created by dockerfile will run seamlessly
a. Dockerfile has NO DEPENDENCY on docker runtime
b. OCI (Open Container Initative) complaint
c. Existing containers will run fine

WHAT SHOULD YOU DO NEXT ?

  1. You need to change only if
    Using DnD (Not recommended for security reasons)
    Using Docker sockets
  2. Regardless, you should switch to containerd in v1.23 and test out
    You have 1 year to switch to v1.24
  3. No Docker commands
    Switch to equivalent kubectl commands

SWITCH TO CONTAINERD IN v1.21–1.23

  1. EKS Optimized Amazon Linux 2 contains a bootstrap flag
  2. Add a node group in your existing cluster with containerd to test OR create a new cluster
  3. Ways to switch
    1. eksctl
    2. launch template with userdata specifying runtime Has a Cavet!
    3. terraform (using bootstrap_extra_args)
  4. EKS Optimized AMI + userdata/bootstrap = Custom AMI

--

--