---
slug: "kubernetes-ContainerCreating-FailedMount"
title: "When Pods Fail to Start with ContainerCreating (FailedMount) in Kubernetes"
description: "When a Kubernetes Pod is stuck in `ContainerCreating` with `FailedMount` events, check Secret / ConfigMap / PVC references and RBAC — common root causes."
url: "https://www.ytyng.com/en/blog/kubernetes-ContainerCreating-FailedMount"
publish_date: "2019-05-18T16:14:49Z"
created: "2019-05-18T16:14:49Z"
updated: "2026-05-11T13:21:27.966Z"
categories: []
keywords: ""
featured_image_url: "https://media.ytyng.com/resize/20230812/228744ee7a18420e8a42e04e60a8cb80.png.webp?width=768"
has_video: false
has_music: false
video_urls: []
music_urls: []
lang: "en"
---

# When Pods Fail to Start with ContainerCreating (FailedMount) in Kubernetes

<p>Environment: Kubernetes&nbsp;&nbsp;<span>v1.13.5 (Rancher)</span></p>
<p></p>
<p>When a Pod in Kubernetes fails to start,</p>
<p>and you check the pods with `kubectl get pods`,</p>
<pre>$ kubectl get pods<br />NAME READY STATUS RESTARTS AGE<br />d-ytyng-com-deployment-755c9d8dcb-9j7dn 0/1 ContainerCreating 0 8m24s<br />php56-alpine-deployment-799dbf8d6f-x2gfj 0/1 ContainerCreating 0 8m24s</pre>
<p>you might see that the status is stuck at ContainerCreating.</p>
<p>When you check the pods with `kubectl describe pods`,</p>
<p></p>
<pre>Warning FailedMount 6s (x7 over 38s) kubelet, &lt;cluster-name&gt; MountVolume.SetUp failed for volume "src" : hostPath type check failed: /xxx/xxx/src is not a directory</pre>
<p>You may encounter a warning like this.</p>
<p>However, the path /xxx/xxx/src does exist.</p>
<p></p>
<p>In that case, in the manifest YAML,</p>
<pre><span>volumes</span>:<br />  - <span>name</span>: src<br />    <span>hostPath</span>:<br />      <span>path</span>: <span>/xxx/xxx/src</span><br />      <span>type</span>: Directory</pre>
<p>if you remove</p>
<pre><span>type</span>: Directory</pre>
<p>it should work.</p>
<p></p>
<p>Reference:</p>
<p>docker - MountVolume.SetUp failed for volume "mongo" : hostPath type check failed: /mongo/data is not a directory - Stack Overflow<br /><a href="https://stackoverflow.com/questions/48927312/mountvolume-setup-failed-for-volume-mongo-hostpath-type-check-failed-mongo">https://stackoverflow.com/questions/48927312/mountvolume-setup-failed-for-volume-mongo-hostpath-type-check-failed-mongo</a></p>
<p></p>
