New answers tagged

1

If you simply need to build a docker image, I recommend using Kaniko. It allows you to build a docker image without having to expose the docker.sock or running your pods in privileged mode, which introduces potential security vulnerabilities. Per the Kaniko documentation, your spec file would look similar to: apiVersion: v1 kind: Pod metadata: name: kaniko ...


0

You can deploy docker on same host where you have k3s and then use same technique with docker sock via mounting volume. I.e. this is part of the spec we did for Jenkins on k3s: apiVersion: v1 kind: Pod metadata: labels: run: jenkins-slave spec: containers: - name: dind image: docker:19.03.12-dind command: - cat volumeMounts: - ...


Top 50 recent answers are included