docker php, nginx is super slow with wordpress

I have create a simple docker stack: php, nginx, mariadb

each one has its own container.

  • Connect to windows image fails with cmd
  • Accessing Docker containers and KVM VMs through VPN
  • How to upgrade Openshift Origin Docker to latest version?
  • How to test and deploy a Docker production image?
  • Run app inside docker container as non-root user with capabilities
  • How can I have shared assets (pictures, text documents, etc) between my Docker container and host system?
  • Now I run on this stack a simple wordpress app,
    but the site loads SUPER SLOW ~ 4-5 sec

    I looked through

    docker stats
    

    and stats looks good max 15% cpu usage, and memory barely getting to 5%

    I have all the docker-compose and dockerfiles here:

    https://gist.github.com/tzookb/f4a868ae06a474676afbb4fce8055902

    would be happy to get any ideas on why this is so slow.

    ** docker on macbook pro

  • docker 1.7 multiple port mapping at run failure
  • Config separate container to different host on Rancher platform
  • Connecting Tomcat container to mysql container: JDBCConnectionException: Unable to acquire JDBC Connection
  • Operate/control host hardware from within docker container
  • How can you run a Docker container if it doesn't exist yet, or start it if it does?
  • Docker-compose failed running a jar that read configuration from a file
  • One Solution collect form web for “docker php, nginx is super slow with wordpress”

    I was trying out Docker on my Macbook Air recently and it is superslow. Are you mounting a folder with WordPress to Docker? Then that’s the problem.

    Mounting drives on Docker seem to be an issue on OS X. You can find a tons of complaining on this around, for example this thread: https://forums.docker.com/t/file-access-in-mounted-volumes-extremely-slow-cpu-bound/8076

    The only thing I recommend is to stop using Docker, it’s not a reliable option on Mac right now.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.