Check out example codes for "docker -it exec bash". It will help you in understanding the concepts better.

Code Example 1

docker exec -i -t 0f4fe0b1f413 bash

Learn ReactJs, React Native from akashmittal.com