What is the error of Nginx container exited with code 1?

  docker, question

The same dockerfiles, no problem running on linux servers. . What is the reason why nginx always makes this mistake when running on my own windows notebook locally?
图片描述

I had this problem at the beginning of playing on the server before, but it was later found to be a problem with nignx configuration, and it was ok after modification. Now how also can’t see where the problem is, win10, Docker for windows, with linux container, set up shared drives, mysql what all normal, nginx error.

The error message is very clear.

/data/log/nginx/access.log

When opening this file, it failed. The file does not exist.

Do you mount the local directory todockerContainer, butwindowsThe directory does not exist locally. Above isLinuxThe way the catalog is written,windowsAre directory paths in this formatC:\Users\cameron\a-b