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:

# file: docker-compose.yml
version: '3'
services:
  alpine:
    image: alpine
# 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:

$ make echo