title: How to run Python with docker on daemon mode?
body: <p>Get python from Docker Hub:</p>
  
  <pre><code>$ docker pull python
  </code></pre>
  
  <p>on CoreOS.</p>
  
  <p>Want to use Ansible to connect it from other host, so it's necessary to launch Python on CoreOS.</p>
  
  <p>But how to do by this way?</p>
  
  <hr>
  
  <h1>More details</h1>
  
  <p>This way can run ansible with coreos:</p>
  
  <h2>Step 1: Install python with shell script on CoreOS</h2>
  
  <p>(It's said not good but now it can be used)</p>
  
  <p><a href="https://stackoverflow.com/questions/36816491/how-do-i-run-python-on-my-vagrant-vm-instance-that-is-coreos/48338831#48338831">How do I run python on my Vagrant vm instance that is CoreOS?</a></p>
  
  <h2>Step 2: Config hosts in an ansible-playbook</h2>
  
  <pre><code>[coreos]
  core-01
  
  [coreos:vars]
  ansible_ssh_user=core
  ansible_python_interpreter=/home/core/bin/python
  </code></pre>
  
  <h2>Step 3: Test connection</h2>
  
  <pre><code>$ ansible -m ping -u core -i hosts core-01
  core-01 | SUCCESS =&gt; {
      "changed": false,
      "ping": "pong"
  }
  </code></pre>
  
  <p>It can be used. But about <code>Step 1</code>, is there a way to use python container to launch it instead of using shell script to install?</p>