Deprecated: Use Docker4Drupal instead.
Easily set up and develop on a LAMP Stack using Docker.
Create the robloach/lamp
image:
docker build -t robloach/lamp .
Run the image, binding associated ports, and mounting the www
directory:
docker run -d -p 880:80 -p 222:22 -p 33306:3306 -v $(pwd)/www:/var/www/html:rw robloach/lamp
Visit http://localhost:880
in your browser.
Visit http://localhost:880/phpinfo.php
in your browser.
Visit http://localhost:880/phpmyadmin
in your browser.
Connect on localhost:3306, user root
, password root
.