Get Started
Prerequisites
These are the prerequisites for a project that follows the 3 Musketeers:
Hello, World!
Create the two following files in an empty directory:
yaml
# file: docker-compose.yml
version: '3'
services:
alpine:
image: alpine
makefile
# file: Makefile
# echo calls Compose to run the command "echo 'Hello, World!'" in a Docker container
echo:
docker-compose run --rm alpine echo 'Hello, World!'
Then simply echo "Hello, World!" with the following command:
bash
$ make echo