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

  1. Final folder structure:

    • Directoryhello-world
      • compose.yml
      • Makefile
  2. Create the following 2 files:

    compose.yml
    services:
    busybox:
    image: busybox
    Makefile
    echo:
    docker compose run --rm busybox echo 'Hello, World!'
  3. Run the command:

    Terminal window
    make echo