<p>I have a docker image that when created should check if the volume is empty, in case it should initialize it with some data. 
This saved data must remain available for other pods with the same or different image.</p>

<p><a href="https://i.stack.imgur.com/2sJos.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2sJos.png" alt="enter image description here"></a></p>

<p>What do you recommend me to do?</p>

<p>You have 2 options:</p>

<ol>
<li>First option is to mount the pod into the node and save the data in the node so when new pod will create in the same node it will have an access to the same volume (persistent storage location).</li>
</ol>

<p>Potential problem: 2 pods on the same node can create deadlock for the same resource (so you have to manage the resource).</p>

<ol start="2">
<li>Shared storage meaning create one storage and every pod will claim storage in the same storage.</li>
</ol>

<p>I strongly suggest that you will take the next 55 minutes and see the webinar below:
<a href="https://www.youtube.com/watch?v=n06kKYS6LZE" rel="nofollow noreferrer">https://www.youtube.com/watch?v=n06kKYS6LZE</a>  </p>
