Sign inSign up free

840. The Build Passed, the Agent Is Missing

medium 20 XP ~9 minHands-on lab

Labs have no container engine, so nothing is built: your files are checked by reading them.

The mailer image built "successfully", but the monitoring agent is missing: the download returned 404. Nobody noticed because each step's failure was hidden.

Task

Fix /home/student/projects/mailer/Dockerfile so that any failing command fails the build:

  • make RUN use bash with pipefail: add SHELL ["/bin/bash", "-o", "pipefail", "-c"] before the first RUN,
  • don't separate commands with ; in RUN lines (chain them with &&, or use a heredoc that starts with set -e),
  • keep every command: the apt install and cleanup, the curl … | tar … download, and /opt/agent/install.sh.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Part of Docker Fundamentals. Next step: exec format error on arm64

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.