cruizba / ubuntu-dind

A docker image based in ubuntu to run docker containers inside docker containers
Apache License 2.0
169 stars 76 forks source link

POD is restarting continuously to connect dockerd #5

Closed GopikaV24 closed 1 year ago

GopikaV24 commented 2 years ago

I am trying to use this image in AKS POD to connect GitHub self-hosted agent. But POD is restarting continuously. After >50 restarts Dockerd connects successfully.

POD Logs:

[Thu Jan  6 06:25:26 UTC 2022] [INFO] [/usr/local/bin/startup.sh] Waited 27 seconds of 30 seconds
[Thu Jan  6 06:25:27 UTC 2022] [INFO] [/usr/local/bin/startup.sh] Process dockerd is not running yet. Retrying in 1 seconds
[Thu Jan  6 06:25:27 UTC 2022] [INFO] [/usr/local/bin/startup.sh] Waited 28 seconds of 30 seconds
[Thu Jan  6 06:25:28 UTC 2022] [INFO] [/usr/local/bin/startup.sh] Process dockerd is not running yet. Retrying in 1 seconds
[Thu Jan  6 06:25:28 UTC 2022] [INFO] [/usr/local/bin/startup.sh] Waited 29 seconds of 30 seconds
[Thu Jan  6 06:25:29 UTC 2022] [ERROR]  dockerd is not running after max time

Can you please help us on this?

ghost commented 2 years ago

I have the same situation.

cruizba commented 1 year ago

I've never tested this image in a kubernetes cluster. Take into account that some k8s cluster may not be able to run privileged containers.

This is an experimental image, I can not fit all use cases, so I will close this issue.