In terminal, change directory [ cd ] into the root folder of the python application. Run the following command to start a docker container for the app.
docker container run -it --name=[CONTAINER_NAME] -v $(pwd):/home [PYTHON-IMAGE] bash
In the bash shell of the project’s docker container, run the following command to change the present working directory to the home directory
In home directory, run the following command to see your app’s files/folders in the home directory.
The flag [
-v $(pwd):/home ] mounts the container’s [
home ] directory to the app’s root folder