Just an extension to the Answer from Bryan:
create container: docker run -it --name DebianContainer debian /bin/bash
Then if you want to exit from the same command line: just print "exit".
If you want to start the container later from a console: docker start -ai DebianContainer
If you want to stop the container from another console: docker stop DebianContainer