In the example you described, you launched runserver to listen on port
8006 inside the container, and then told docker to forward the host
port 8006 to port 8000 inside the container, but there's nothing
listening on port 8000 inside the container.
You'll want either to start the development server at port 8000 (and
keep the -p 8006:8000), or change the -p argument to 8006:8006.
Good luck,
Michal