PHP websites with Docker

I’m having a hard time understanding how to make bunch of PHP websites using Docker. I’d like to use Docker, so that I can scale this service. Also, each website is independent and executes arbitrary code, so each needs a kind of isolated chroot jail.

I just want to understand from a high level, what is required to do this kind of thing. I’m just beginning so please excuse the confusingness of this question:

  • docker pull generate 403 error message on latest version
  • Pushing a tag to private docker registry in artifactory fails from mac
  • How can I run a command on an existing container in IBM Bluemix?
  • Docker: containers vs local installs
  • Docker container on windows 10 unable to access host folder. It shows empty.
  • How to install docker specific version
  • Let’s say I have an image that has nginx on it with php. So I can spin up say 10 containers with this image. I can load balance across those images. But I don’t understand how I separate each “user” from each other. If a request comes in to a particular container, then nginx invokes php to execute, how can I setup that php execution environment to be isolated – that is, not know about the other users?

  • ship test assets with docker for continuous integration
  • Install Docker auto completion without using Home Brew
  • run netflixoss docker on windows 8.1
  • pika.BlockingConnection() failing inside containers, works well within VMs
  • How to deploy Apache Solr 5x into the Jelastic cloud?
  • Cannot connect to postgres server in docker
  • One Solution collect form web for “PHP websites with Docker”

    You can create separate image that has nginx, php and website’s code with assets for each website. One website – one image and one or more containers.

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