Here’s a quick list of commands to help you get up and running quickly. We’re going to create a LAMP (Linux, Apache, MySQL, PHP) inside a container so you can do local development with minimal effort.

Building a Basic LAMP stack

Download an Ubuntu image

  docker pull ubuntu:16.10

List all your available images

  docker images

Create a container

  docker run -dit -p 8080:80 ubuntu

View your running container

  docker ps

View all your containers

  docker ps -a

Remove any images you no longer want to use

  docker rmi YOUR_IMAGE_NAME