Educative

What is the use of WORKDIR /exercise_2 in this sample? its not used right?

What is the use of WORKDIR /exercise_2 in this sample? its not used right?

Please conform.

WORKDIR /exercise_2

This specifies the default directory to copy files. When you run the container and execute docker exec -it [container_id] /bin/bash. The default directory will be exercise_2.

1 Like

Thank you for your quick reply Venkatesh!!