Switch to containerd, how to keep my docker-compose steps in CI? #1226
-
Hello folks, I had a Kube cluster running on Docker, and some projects with a CI step performing docker actions like docker-compose. I redeployed a new cluster, and since Docker is deprecated I switched to containerd. All my steps with docker-compose do not work anymore. I'm running CI pipeline thanks to a Gitlab Runner Executor in my Kube cluster. I thought about replacing them by a nerdctl compose, but for that I need a nerdctl image with buildkit in it. I tried to reverse engineer the Dockerfile, but when I build an image like that: nerdctl build --target=build-full --platform "linux/amd64" -t MYREGISTRY/nerdctl:full . there is no /scripts-25793245-2722594858/step_script: eval: line 160: nerdctl: not found From a local container: /nowhere # nerdctl
sh: nerdctl: not found Is there any trick to build a full image for nerdctl with capabilities to I can see that all binaries are present in |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
That depends on your Dockerfile. Which dockerfile are using to build. FYI if you are using containerd as buildkit worker you also need containerd. This may help you #1090 |
Beta Was this translation helpful? Give feedback.
-
This is wrong for your use case. Just the default target should work. |
Beta Was this translation helpful? Give feedback.
This is wrong for your use case. Just the default target should work.