title: Exit from docker using make file
body: <p>I am trying to create a make file to run the docker commands.</p>
  <pre><code>start:
      $(info Make: Starting container.)
      docker run -it --rm -v $(shell pwd):/mnt -w /mnt build:focal
   
  stop:
      $(info Make: Stopping container.)
      exit
  </code></pre>
  <p>When I run <code>make start</code>, the docker container starts and the current directory is <code>/mnt</code> but when I run <code>make stop</code> it prints exit in the terminal rather than exiting the docker container. So, to stop, I must type exit or ctrl+c again in the terminal. Is it possible to close the container using makefile from inside the container?</p>
  <pre><code>$make start
  Make: Starting container.
  docker run -it --rm -v /data/demo:/mnt -w /mnt build
  builduser@6a1958f9d0cc:/mnt$ ls
  Makefile
  builduser@6a1958f9d0cc:/mnt$ make stop
  Make: Stopping container.
  exit
  </code></pre>