diff --git a/docs/reference/commandline/exec.md b/docs/reference/commandline/exec.md index 5faa49e067..63635b2f40 100644 --- a/docs/reference/commandline/exec.md +++ b/docs/reference/commandline/exec.md @@ -39,7 +39,7 @@ The command started using `docker exec` only runs while the container's primary process (`PID 1`) is running, and it is not restarted if the container is restarted. -COMMAND will run in the default directory of the container. It the +COMMAND will run in the default directory of the container. If the underlying image has a custom directory specified with the WORKDIR directive in its Dockerfile, this will be used instead.