symfony classes.map failed to open stream: No such file or directory

I get this error when I tried to deploy symfony in a Docker swarm node

ContextErrorException in Kernel.php line 338:

  • ERROR: Version in “./docker-compose.yml” is unsupported. You might be seeing this error because you're using the wrong Compose file version
  • netcat for MySQL connection forwarding
  • How to COPY / ADD resources via a Dockerfile for privileged users?
  • When run docker-compose up I get python: can't open file 'manage.py': [Errno 2] No such file or directory
  • Building a Docker image with deprecated dependencies
  • How to access local file when building from Dockerfile?
  • Warning: file_put_contents(/home/backend_microservice/private_webapp/var/cache/dev/classes.map): failed to open stream: No such file or directory

    I tried to remove the cache manually, I remove the vendor directory and I generate a new one with composer, but still give the same error.

    The same config works fine with only docker engine but does not work in swarm mode.

    OS : CentOS 7.3

    Virtualization : Docker version 17.06.0-ce, build 02c1d87 Swarm mode

    Symfony :3.2.9

    Any help or suggestion??
    thank you in advance.

  • Does Calico work with Docker in Swarm Mode, If so what is the version?
  • docker bridge network using docker-compose can't access VPN resources [closed]
  • Cannot build Docker image using spotify plugin
  • has anyone created a docker container using cake?
  • Docker created with docker-compose not visible from outside server
  • running docker compose on swarm
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.