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?

  • Elastic beanstalk : load balancer DNS unreachable
  • Permission denied @ rb_sysopen - log/application.log (Errno::EACCES)
  • Redirect users to different domains of the same web application according to their ip address location
  • Docker, can't ssh to rhel/centos container on Ubuntu 14.04
  • How to access boot2docker-ip from inside a docker container
  • Error while running a container using docker
  • Docker, Supervisord and supervisor-stdout
  • how to make ebs volume usable by docker stack
  • Docker with Windows
  • Gitlab CI Runner, DigitalOcean and Docker Compose
  • WSO2 version 2 docker files
  • Docker for Mac: Host network and port publishing
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.