Restart an existing container after you exited it, this will save your previous logs.
Follow the below commands:
docker start `docker ps -q -l` (restarts the container in the background)
docker attach `docker ps -q -l` (reattaches the terminal & stdin)