Goal
Install XAMPP on CentOS deployed by OSX's docker.
Deploy Cent OS
$ docker pull centos:6
$ docker run -it --name share_app -p 8080:80 -v /Users/xxx/share:/share centos:latest
Go to CentOS's shell
$ yum install wget
$ wget $url_of_xampp_refereing_xampp's_download_site
$ chmod 755 xampp-linux-x64-5.6.30-0-installer.run
$ xampp-linux-x64-5.6.30-0-installer.run
Access httpd server from OSX's server.
Congrats to access the server!