symfony 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:

  • How to Solve Authentication issue when pushing Docker Image using Maven to Private repository
  • The requested URL was not found on this server but works local
  • prior storage driver “aufs” failed: driver not supported Error starting daemon: error initializing graphdriver: driver not supported
  • Should servlet running under tomcat in a container exit when it is not able to reach DB container?
  • Accesing Spring-Boot WebApplication running in Docker Container
  • Docker - Downloaded war not found
  • Warning: file_put_contents(/home/backend_microservice/private_webapp/var/cache/dev/ 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.

  • Files created inside docker are write protected on host
  • Is there any way to find out who pushed an image with a specific tag to a repo on
  • How to run Tensorboard and jupyter concurrently with docker?
  • Docker build: returned a non-zero code: 1
  • Transmission WebUI 409 in Docker Container
  • Powershell remote access to nanoserver on docker
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.