<p>I'm currently using a podtemplate (See below) inside my <code>Jenkinsfile</code> to provision a docker container which mounts to the docker socket to provision containers within the pipeline.</p>

<p>As the cloud-hosted kubernetes I use is going from dockerd to containerd as container runtime, I want to ask if there is somebody who is using containerd with jenkins kubernetes plugin (especially podtemplates).</p>

<pre><code>podTemplate(label: 'mypod', cloud: cloud, serviceAccount: serviceAccount, kubenamespace: kubenamespace, envVars: [
envVar(key: 'NAMESPACE', value: kubenamespace),
envVar(key: 'REGNAMESPACE', value: regnamespace),
envVar(key: 'APPNAME', value: appname),
envVar(key: 'REGISTRY', value: registry)
],
volumes: [
  hostPathVolume(hostPath: '/etc/docker/certs.d', mountPath: '/etc/docker/certs.d'),
  hostPathVolume(hostPath: '/var/run/docker.sock', mountPath: '/var/run/docker.sock')
],
containers: [
  containerTemplate(name: 'helm', image: 'lachlanevenson/k8s-helm:v2.9.1', ttyEnabled: true, command: 'cat'),
  containerTemplate(name: 'docker' , image: 'docker:17.06.1-ce', ttyEnabled: true, command: 'cat')]) {
</code></pre>

<p>The folder structure is slightly different between the Docker engine and containerd. Specifically the containerd runtime has the following directories...</p>

<p>logs - /var/log/pods/
websocket - unix:////var/run/containerd/containerd.sock</p>

<p>This link has more details.
<a href="https://github.com/containerd/containerd/blob/master/docs/ops.md" rel="nofollow noreferrer">https://github.com/containerd/containerd/blob/master/docs/ops.md</a></p>
