Running and configuring xampp in docker

    xampp reference

    What is tomsik68/xampp?

    If you want to run or develop or quickly run Apache / PHP / MySQL project without installing anything (like MAMP, XAMPP, WAMP) you can use this image (tomsik68/xampp) which wraps original XAMPP(MySQL+PHP+PHPMyAdmin) with SSH server in docker.

    How to run tomsik68/xampp in docker?

    Running xampp in docker doesn't require you to install anything, assuming you have docker running already.

    How to use xampp docker image?

    Accepted parameters


    Available commands

    run
    description
    docker run --name myXampp -p 41061:22 -p 41062:80 -d -v ~/my_web_root:/www tomsik68/xampp:8
    shell
    get a shell terminal inside your container
    docker exec -ti myXampp bash
    restart
    restart web server
    docker exec myXampp /opt/lampp/lampp restart
    XAMPP Interface
    visit this URL to open up XAMPP interface
    http://localhost:41062/
    Your webpage
    visit this URL to open up website you added in local directory
    http://localhost:41062/www
    phpMyAdmin
    visit this URL to open up phpmyadmin
    http://localhost:41062/phpmyadmin