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.
Prerequisites
Section titled “Prerequisites”-
Final folder structure:
Directoryhello-world
- compose.yml
- Makefile
-
Create the following 2 files:
compose.yml services:busybox:image: busyboxMakefile echo:docker compose run --rm busybox echo 'Hello, World!' -
Run the command:
Terminal window make echo