Check out example codes for "docekr enter container". It will help you in understanding the concepts better.

Code Example 1

docker exec -it [container-id] bash

Learn ReactJs, React Native from akashmittal.com