<pre class="lang-text prettyprint-override"><code>Error: failed to start container &quot;node-exporter&quot;: Error response from daemon: path /sys is mounted on /sys but it is not a shared or slave mount
</code></pre>
<p>shows that message here is the repository I took it from trying to make a node exporter to Grafana dashboard through Kubernetes pods followed this <a href="https://www.youtube.com/watch?v=1-tRiThpFrY&amp;t=791s" rel="nofollow noreferrer">video</a> and this <a href="https://github.com/marcel-dempers/docker-development-youtube-series/tree/master/monitoring/prometheus/kubernetes/1.18.4" rel="nofollow noreferrer">repo</a></p>
<p>ERROR screenshot
<img src="https://i.stack.imgur.com/ZtgSE.png" alt="enter image description here" /></p>

Loopero
<p>Well for me (Docker-Desktop in MacOS) this command saved my day:</p>
<pre><code>kubectl patch ds monitoring-prometheus-node-exporter --type &quot;json&quot; -p '[{&quot;op&quot;: &quot;remove&quot;, &quot;path&quot; : &quot;/spec/template/spec/containers/0/volumeMounts/2/mountPropagation&quot;}]'
</code></pre>
<p>credit: <a href="https://github.com/prometheus-community/helm-charts/issues/467#issuecomment-793682080" rel="noreferrer">GitHub Issues</a></p>
