title: docker run container, how to rerun
body: <p>I build container with:</p>
  
  <pre><code>docker build -f Dockerfile.xyz -t dave/xyz .
  </code></pre>
  
  <p>after that I run docker with:</p>
  
  <pre><code>docker run -it \
  --env='LDAP_USER=uid=bot_for_git,ou=bots,dc=company,dc=org' \
  --env='LDAP_PASS=' --volume=/srv/docker/xyz/data1:/data \
  -p 8010:8010 -p 9989:9989 dave/xyz
  </code></pre>
  
  <p>and verified that's all ok.</p>
  
  <p>what is next?</p>
  
  <p>My guess, that I should run <code>docker ps</code>, take container id from there, and to run container with the same preferences (environment, port mapping, volumes mapping) I should run:</p>
  
  <pre><code>docker start -a container_id
  </code></pre>
  
  <p>am I right?</p>
  
  <p>And what about rebuilding image, if change <code>Dockerfile.xyz</code> and rebuild dave/xyz, does container with <code>container_id</code> get
  update automatically, or I should repeat <code>docker run -it</code> step?</p>