<p dir="auto">I'm setting up a <a href="http://kubernetes.io/v1.0/docs/getting-started-guides/docker-multinode.html" rel="nofollow">docker-multinode</a> k8s. I'm trying to mount a volume (in this case, a secret). Originally, I was getting this issue:<br>
<code class="notranslate">Unable to mount volumes for pod "service-registry-eccye_default": exit status 32</code><br>
I was on Slack yesterday, and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cjcullen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cjcullen">@cjcullen</a> pointed out that I should be running the kubelet with the <code class="notranslate">--containerized</code> flag. I have added it and restarted the server and now I'm having this error:<br>
<code class="notranslate">Unable to mount volumes for pod "service-registry-4b682_default": fork/exec /nsenter: no such file or directory</code></p>
<p dir="auto">It looks like this issue was brought up in the past (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="79865554" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/8734" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/8734/hovercard" href="https://github.com/kubernetes/kubernetes/issues/8734">#8734</a>), but never resolved.</p>
<p dir="auto">When I try to create a pod which mounts secret volumes I get a <code class="notranslate">Unable to mount volumes for pod: exit status 1</code> error. For instance, when trying to create the example pod from <a href="https://github.com/kubernetes/kubernetes/tree/master/docs/user-guide/secrets">https://github.com/kubernetes/kubernetes/tree/master/docs/user-guide/secrets</a> :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ curl -s https://raw.githubusercontent.com/kubernetes/kubernetes/master/docs/user-guide/secrets/secret.yaml | kubectl create -f -
secrets/test-secret
$ curl -s https://raw.githubusercontent.com/kubernetes/kubernetes/master/docs/user-guide/secrets/secret-pod.yaml | kubectl create -f -
pods/secret-test-pod
$ kubectl describe pod secret-test-pod
[...]
Events:
  FirstSeen             LastSeen            Count   From            SubobjectPath   Reason      Message
  Fri, 30 Oct 2015 10:56:30 +0000   Fri, 30 Oct 2015 10:56:30 +0000 1   {scheduler }                scheduled   Successfully assigned secret-test-pod to 127.0.0.1
  Fri, 30 Oct 2015 10:56:30 +0000   Fri, 30 Oct 2015 11:31:37 +0000 211 {kubelet 127.0.0.1}         failedMount Unable to mount volumes for pod &quot;secret-test-pod_default&quot;: exit status 1
  Fri, 30 Oct 2015 10:56:30 +0000   Fri, 30 Oct 2015 11:31:37 +0000 211 {kubelet 127.0.0.1}         failedSync  Error syncing pod, skipping: exit status 1"><pre class="notranslate"><code class="notranslate">$ curl -s https://raw.githubusercontent.com/kubernetes/kubernetes/master/docs/user-guide/secrets/secret.yaml | kubectl create -f -
secrets/test-secret
$ curl -s https://raw.githubusercontent.com/kubernetes/kubernetes/master/docs/user-guide/secrets/secret-pod.yaml | kubectl create -f -
pods/secret-test-pod
$ kubectl describe pod secret-test-pod
[...]
Events:
  FirstSeen             LastSeen            Count   From            SubobjectPath   Reason      Message
  Fri, 30 Oct 2015 10:56:30 +0000   Fri, 30 Oct 2015 10:56:30 +0000 1   {scheduler }                scheduled   Successfully assigned secret-test-pod to 127.0.0.1
  Fri, 30 Oct 2015 10:56:30 +0000   Fri, 30 Oct 2015 11:31:37 +0000 211 {kubelet 127.0.0.1}         failedMount Unable to mount volumes for pod "secret-test-pod_default": exit status 1
  Fri, 30 Oct 2015 10:56:30 +0000   Fri, 30 Oct 2015 11:31:37 +0000 211 {kubelet 127.0.0.1}         failedSync  Error syncing pod, skipping: exit status 1
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ kubectl get secrets
NAME                  TYPE                                  DATA
default-token-vjaxy   kubernetes.io/service-account-token   2
test-secret           Opaque                                2"><pre class="notranslate"><code class="notranslate">$ kubectl get secrets
NAME                  TYPE                                  DATA
default-token-vjaxy   kubernetes.io/service-account-token   2
test-secret           Opaque                                2
</code></pre></div>
<p dir="auto">This is a single node containerized k8s cluster for local development (based on <a href="https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/docker.md">https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/docker.md</a> ).</p>
<p dir="auto">Here is how I specifically create the cluster and the definition of the master pod: <a href="https://gist.github.com/2opremio/12eafc0c2485d8d13f2a">https://gist.github.com/2opremio/12eafc0c2485d8d13f2a</a></p>
<p dir="auto">I am running Docker <code class="notranslate">version 1.8.2, build 0a8c2e3</code></p>
<p dir="auto">Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="112676337" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/16055" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/16055/hovercard" href="https://github.com/kubernetes/kubernetes/issues/16055">#16055</a> (I get a different error, though) and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="79865554" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/8734" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/8734/hovercard" href="https://github.com/kubernetes/kubernetes/issues/8734">#8734</a> (but I do provide the --contenerized flag see <a href="https://gist.github.com/2opremio/12eafc0c2485d8d13f2a#file-create_cluster-sh-L27">https://gist.github.com/2opremio/12eafc0c2485d8d13f2a#file-create_cluster-sh-L27</a> ) and and somehow similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="87107241" data-permission-text="Title is private" data-url="https://github.com/openshift/origin/issues/3072" data-hovercard-type="issue" data-hovercard-url="/openshift/origin/issues/3072/hovercard" href="https://github.com/openshift/origin/issues/3072">openshift/origin#3072</a></p>