title: How to kill process inside container? Docker top command
body: <p>I have simple example from official guide at docker website.</p>
  
  <p>I run the following:</p>
  
  <pre><code>sudo docker run -d ubuntu:latest /bin/sh -c "while true; do echo hello world; sleep 1; done"
  a66asdasdhqie123...
  </code></pre>
  
  <p>Then take some output from created container:</p>
  
  <pre><code>sudo docker logs a66
  hello
  hello
  hello
  ...
  </code></pre>
  
  <p>Then I lookup the running processes of a container:</p>
  
  <pre><code>sudo docker top a66
  UID                 PID                 PPID                C                   STIME               TTY                 TIME                CMD
  root                25055               15152               0                   20:07               ?                   00:00:00            /bin/sh -c while true; do echo hello world; sleep 1; done
  root                25295               25055               0                   20:10               ?                   00:00:00            sleep 1
  </code></pre>
  
  <p>Next I try to kill the first process of container:</p>
  
  <pre><code>sudo docker exec a66 kill -9 25055
  </code></pre>
  
  <p>However after I make it nothing changes. Process still works and output "hello" every second. What do I wrong?</p>