Chapter 1. Introduction to Docker
What is Docker?
Why Docker?
What can I expect from this book?
Chapter 2. Running a PHP Script in Docker
Introduction to Docker Images
Getting a PHP Docker Image
Getting Code Into a Container
Running our Hello World script in Docker
Chapter 3. Creating a SlimPHP Application
Installing Slim Framework
Stubbing Out Endpoints
Running Our Application for the First Time
More Docker Run Options
Connecting to the MetaWeather API
Chapter 4. Connecting to the Database
Creating a Custom Dockerfile
Building the Image
Running a MySQL Container
Logging into a Running Container
Retaining Data in Our Database Container
Creating a Database Table
Saving to the Database from our PHP Application
Linking the PHP Container
Deleting Data
Managing Environmental Variables
Chapter 5. Next Steps
Further Development
Resources
Final Words
Quick Reference
About the Author