Docker has trouble creating nginx container

  docker, question
Command: dockerrun-p80: 80-namemynginx-v $ pwd/www:/www.v $ pwd/conf/nginx.conf:/etc/nginx/nginx.conf-v $ pwd/logs:/www logs-dginx
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: contain  er init caused \"rootfs_linux.go:58: mounting \\\"/root/conf/nginx.conf\\\" to rootfs \\\  "/var/lib/docker/overlay2/0d3bc40b3dbdaeaa49ca1fe50f5e4fac7a265066cb9a7eff4202b1aa5d0abdcf/merged\\\" at \\\  "/var/lib/docker/overlay2/0d3bc40b3dbdaeaa49ca1fe50f5e4fac7a265066cb9a7eff4202b1aa5d0abdcf/merged/etc/nginx/nginx.conf\\\" caused \\\"not a directory\  \\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)?  Check if the specified host path exists and is the expected type.

How to solve this problem?

Look at thishttps://stackoverflow.com/que …

docker volume rm $(docker volume ls -q)