We've only really seen using Docker Compose to spin up some instances. docker compose up -d
In this video we start to see how to build our own containers and images.
Images
We can list images this way:
docker image ls
An image is like a Class. A Container is an instance of an image, just like an Object is an instance of some Class.
Running a Container
We can run a container from an image:
docker run --rm -d \
-v $(pwd):/application:/var/www/html \
-p 8080:80 \
shippingdocker/phpapp