title: docker stop and remove container
body: <p>This is a very basic question. One can stop and remove a docker container like this. </p>
  
  <pre><code>docker stop &lt;container_id&gt;
  docker rm &lt;container_id&gt;
  </code></pre>
  
  <p>Is it the same as this?</p>
  
  <pre><code>docker rm -f &lt;container_id&gt;
  </code></pre>
  
  <p>If they are not the same, what are the negative effects of using the latter? </p>
  
  <p>I already saw <a href="https://stackoverflow.com/questions/35122773/single-command-to-stop-and-remove-docker-container">single command to stop and remove docker container</a>. But it doesn't answer my question.</p>