I am new to Docker and I am having a hard time applying its core technology to my present web development. Using MAMP, you just need to download the app, put your PHP/HTML files on /htdocs, start servers, then go to http://localhost:8888/ to see your webapp. Now, using docker, I’m wondering how can I do the same. What I’ve done so far is to pull http, php and mysql images from the Docker Hub.
- How can I link these three images together to make them work? Or How should I run them simultaneously?
- Where should I put the /htdocs or how can I access it?
- MAMP has a phpMyAdmin for database access, does Docker has something like this?
I’m working on a Mac OS X Yosemite (10.10.1) with boot2docker v1.4.1 and VirtualBox 4.3.20.