- Inspect the Docker container
- Filter output to show
working_dir
label - Identify the host directory where the container was started
docker
docker inspect nginxphpfpm | grep "com.docker.compose.project.working_dir"
working_dir
labeldocker inspect nginxphpfpm | grep "com.docker.compose.project.working_dir"