- Inspect the Docker container
- Filter output to show
working_dirlabel - 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"