<p>I'm working on a system that spins up pods in k8s for user to work in for a while.  They'll be running code, modifying files, etc.  One thing I'd like to do is be able to effectively &quot;export&quot; their pod in it's modified state.  In docker I'd just <code>docker commit &amp;&amp; docker save</code> to bundle it all to a tar, but I can't see anything at all similar in the kubernetes api, kubectl, nor client libs.</p>

justincely
<p><strong>Short answer: No, Kubernetes doesn't have an equivalent to docker commit/save.</strong></p>
<p>As <a href="https://stackoverflow.com/users/9423721/markus-dresch" title="4,635 reputation">Markus Dresch</a> mentioned in the comment:</p>
<blockquote>
<p>kubernetes orchestrates containers, it does not create or modify them.</p>
</blockquote>
<p>Kubernetes and Docker are 2 different tools for different purposes.
Kubernetes, also known as K8s, is an open-source system for automating deployment, scaling, and management of containerized applications.</p>
<p>Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers.</p>
<p>You can find more information about Pull, Edit, and Push a Docker Image <a href="https://blog.macstadium.com/blog/how-to-k8s-pull-edit-and-push-a-docker-image" rel="nofollow noreferrer">here</a>.</p>
