Skip to content

Getting started

Let's print out Hello, World! in the terminal using the 3 Musketeers. The command make echo will be calling Docker to run the command echo 'Hello, World!' inside a container.

getting-started

Prerequisites

Hello, World!

Create the following 2 files:

yaml
# compose.yml
services:
  alpine:
    image: alpine
makefile
# Makefile
echo:
	docker compose run --rm alpine echo 'Hello, World!'

Then simply run:

bash
make echo

Released under the MIT license.