Php development inside docker on ubuntu 16.04 for cpanel shared hosting with some addon domain on it

I have been developing yii 2 application on windows with vagrant. As I need a fast loading environment to work on, I installed ubuntu 16.04. Now I need to have a development environment inside ubuntu like docker or something else that is:

  1. Light to load
  2. Its configuration for development environment is separated from ubuntu’s itself. ( I mean its config doesn’t affect on ubuntu).
  3. Can transfer my application to cpanel shared hosting that has some addon domains on it.

Does docker provides me these features especially the third one?
Can I have different applications with different php versions and other configurations for each of my addon domains on cpanel shared hosting?
How can I overcome with these needs?

  • How to create a Dockerfile for cassandra (or any database) that includes a schema?
  • docker npm install Error: getaddrinfo ENOTFOUND
  • How do apply Puppet class locally
  • Add to container's /etc/hosts using Fig?
  • Jenkins Pipeline push Docker image
  • docker websocket attach using unix sockets
  • Docker slow non-local database access
  • Why can't apache communicate with php-fpm in separate containers using Docker for Windows?
  • Execute host shell script from meteor container
  • How do I load a csv from my local machine (mac) to Spark-Neo4j docker?
  • Does my proxied server need to use HTTPS protocol with docker linking?
  • Linking Containers via Docker Remote API
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.