Why does my Docker composer not work with volume?
It seems there is a spacing issue in your yaml

You should change the compose file to

version : '3.4'

services:
    testando-volume-compartilhado-a:
      image: carloshenriquecarniatto/teste:latest

    volumes:        
        - D:\App:/app  # &lt;- extra space here
    ports:
        - "10001:80"
        - "44378:443"