<p>I am trying to run a <a href="https://nixos.org/nixpkgs/manual/#ssec-pkgs-dockerTools-buildImage" rel="nofollow noreferrer">Nix-built</a> Docker image in tarball form. With docker, <code>docker load -i &lt;path&gt;</code> followed by a <code>docker run</code> works fine. Now I've uploaded the tarball to Artifactory and am trying to run the image on K8s with something like:</p>

<pre><code>$ kubectl run foo-service --image=&lt;internal Artifactory&gt;/foo-service/foo-service-latest.tar.gz
</code></pre>

<p>However all I see is:</p>

<pre><code>NAME                 DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
foo-service          1         1         1            0           2h
</code></pre>

<p>Is it possible to load an image from a (remote) tarball in K8s? If yes, what is the command to do so?</p>

<p>There is no way to do that directly in Kubernetes.</p>

<p>You can do <code>docker load</code> and then <code>docker push</code> to a registry (you can host a <a href="https://github.com/kubernetes/kubernetes/blob/master/cluster/addons/registry/README.md" rel="nofollow noreferrer">private registry</a> in Kubernetes or use a public one) and after that <code>kubectl run</code>.</p>

<p>Minikube also has a registry addon for local development.</p>
