How to handle docker deprecation after eks 1.24 upgrade?

0

As dockershim has been deprecated in eks 1.24 and containerd has become runtime, and I didn't completely understand the deprecation concept and upgraded my eks cluster (with managed nodegroups) from 1.23 to 1.24.

Since then, any new nodes joining the cluster are having docker daemon inactive, and all of my deployments are failing with an error: "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?".

Now, what can be done exactly to fix this? Do I need to change all of my deployment related docker files or Can I configure something that the cluster still uses docker daemon?

1 回答
0

Hello There,

As a first step, you could look if you are affected by the removal of dockershim in this documentation.

Considering you are already affected by this post migration and based on your question you probably have some node startup scripts that use docker commands, you can now look at the guidance in this documentation to migrate away from using docker commands which won't work going forward.

There is also this very good blog post detailing all the necessary step to be containerd ready on amazon EKS.

Please let me know in case of any further queries.

Thanks, Manish

profile picture
Manish
已回答 1 年前
  • But as the k8s documentation states, cri-dockerd can be used for docker engine dependency which I have, but eks doesn’t support configuring cri-dockerd on the cluster, how to overcome that ?

  • I would personally suggest, if possible you should look at removing the docker engine dependency as I can see a few issues listed here for installing cri-dockerd https://github.com/Mirantis/cri-dockerd/issues/204. Also I can see some issues raised here https://github.com/aws/containers-roadmap/issues/1514 where team suggested folks to rethink exposing docker sockets and running privileged containers which is an anti-pattern.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则