title: How to spawn a docker container in a remote machine
body: <p>Is it possible, using the <a href="https://docker-py.readthedocs.io/en/stable/index.html" rel="nofollow noreferrer">docker SDK for Python</a>, to launch a container in a remote machine?</p>
  <pre class="lang-py prettyprint-override"><code>import docker
  client = docker.from_env()
  
  client.containers.run(&quot;bfirsh/reticulate-splines&quot;, detach=True)
  # I'd like to run this container ^^^ in a machine that I have ssh access to.
  </code></pre>
  <p>Going through the documentation it seems like this type of management is out of scope for said SDK, so searching online I got hints that the <a href="https://github.com/kubernetes-client/python" rel="nofollow noreferrer">kubernetes client for Python</a> could be of help, but don't know where to begin.</p>