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?

  • docker.local hostname in /etc/hosts not resolving on OSX for docker machine (causing rspec tests to fail)
  • Docker link container as build argument
  • docker SSL connection error
  • docker-compose remove services on exit (or recreate on start)
  • Error in Docker overlay folder after replacing mounted folder with a file on the host
  • Executing `ls` on docker with a shared volume results in “No such file or directory”
  • accessing a docker container's file system through terminal
  • Enable external network access from my docker swarm
  • How can I transfer my docker image to another computer?
  • Docker C++ development and CI
  • Connection issue with Docker
  • ship test assets with docker for continuous integration
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.