A practical learning log of the problems I hit while building my
sre-journeyrepository: what failed, why it failed, how I debugged it, and what I learned from each fix.
Repository: github.com/Nirvanjha2004/sre-journey
Environment: Windows + WSL 2 (Ubuntu), Docker Desktop, Git, Node.js/TypeScript, GitHub Actions
Scope: Day 01–Day 05 learning notes and the related troubleshooting discussions
Why I started this journey
I did not want to learn SRE by only reading definitions of Linux, Docker, CI/CD, or monitoring. I wanted to get comfortable with the things that actually happen while operating software: a service does not start, a port refuses connections, a configuration is in the wrong directory, a Docker build hangs, a workflow cannot find a package file, or a pull request is ready to merge even though its checks are failing.
So I started organising the work in a repository:
sre-journey/ ├── day_01/ ├── day_02/ ├── day_03/ ├── day_04/ ├── day_05/ └── .github/ └── workflows/ └── ci.yml The exact boundary between a few early Linux topics and individual day folders is not fully clear from the available notes, so this article groups those topics together rather than pretending every command belongs to a precisely verified day. The Day 05 Docker and CI incidents are captured more specifically.
The journey at a glance
flowchart TD A[Linux fundamentals] --> B[Shell, files and Vim] B --> C[systemd and service management] C --> D[Nginx configuration and HTTPS debugging] D --> E[Docker images and containers] E --> F[Docker Compose and persistent volumes] F --> G[GitHub Actions CI] G --> H[Required status checks] H --> I[Failed checks block merging] The important shift was from simply making something run on my machine to making the build repeatable and the repository safer to change.
Part 1 — Linux and service fundamentals (Days 01–04)
1. Getting comfortable with the Linux filesystem
One of the first things I had to get right was understanding where a command runs and how paths are interpreted. A command can be perfectly valid and still fail because I am in the wrong directory.
The path confusion: /, ./, and ../
These paths are not interchangeable:
| Path | Meaning |
|---|---|
/ | The filesystem root; an absolute path starts here. |
. | The current working directory. |
./file | A file in the current directory. |
.. | The parent directory. |
../file | A file in the parent directory. |
/app/dist | The dist directory under /app, regardless of the current directory. |
For example, if the current directory is /home/user/sre-journey/day_05, then:
-
./means/home/user/sre-journey/day_05. -
../means/home/user/sre-journey. -
/means the root of the Linux filesystem.
This also made Dockerfile instructions easier to understand. With WORKDIR /app, the instruction COPY package*.json ./ copies the matching package files into /app inside the image. The destination ./ is relative to the current Docker WORKDIR.
Moving and copying files/directories
I also had to distinguish moving a file from copying a directory.
# Move a file into another directory mv setup_nginx_logrotate.md day_04/ # Move a hidden directory from day_05 to the repository root mv day_05/.github . # Copy an entire directory recursively cp -r day_04 day_04-backup A few useful checks before changing paths:
pwd # Where am I? ls -la # Show normal and hidden files find . -maxdepth 3 -type f ls -la is particularly useful because names beginning with a dot, such as .dockerignore and .github, are hidden in a normal ls listing.
Lesson: Before debugging a file operation, check the current directory with pwd. Relative paths are resolved from that directory, not from the directory I have in mind.
2. Vim: editing files from the terminal
I practised the basic Vim workflow because server and Linux work often involves editing configuration files directly from a terminal.
| Action | Vim command |
|---|---|
| Enter insert mode | i |
| Return to normal mode | Esc |
| Save | :w |
| Quit | :q |
| Save and quit | :wq |
| Quit without saving | :q! |
The key mental model is that Vim has different modes. Pressing i starts inserting text; pressing Esc returns to normal mode, where commands such as :wq can be entered.
3. Bash scripting: moving beyond one-off commands
I also started learning Bash scripting so that repetitive operational steps can be written down and executed consistently. The core building blocks to understand are:
- Variables and command substitution.
- Exit codes and conditional statements (
if). - Loops (
forandwhile). - Functions and positional arguments.
- Quoting, redirection, and pipes.
- Safe script behaviour with options such as
set -euo pipefail(after understanding what each option does).
A small example of the style of script I am working towards:
#!/usr/bin/env bash set -euo pipefail SERVICE="nginx" if systemctl is-active --quiet "$SERVICE"; then echo "$SERVICE is running" else echo "$SERVICE is not running" exit 1 fi This is useful because an operational script should not merely print something; it should return a meaningful exit status that another tool, such as CI, can interpret.
4. systemd targets and service management
A Linux machine runs many units managed by systemd. A target is a grouping/synchronisation point for units. It is useful to think of targets as named system states rather than individual processes.
Examples include:
-
multi-user.target: a normal multi-user, non-graphical operating state. -
graphical.target: a graphical operating state, generally built on top of multi-user services. -
rescue.target: a minimal recovery environment. -
emergency.target: an even more minimal emergency environment.
Useful inspection commands:
systemctl get-default systemctl list-units --type=target systemctl status nginx The distinction that matters operationally is that a target groups services, while a service unit represents a managed service/process. Knowing which target is active and whether a service is active helps narrow down startup and availability problems.
I explored systemd targets and service management as concepts. The notes available for this write-up do not record a specific target-switching incident, so I have not described one as a problem I personally fixed.
5. Nginx: sites-available versus sites-enabled
A useful Nginx configuration pattern on Debian/Ubuntu systems is to keep configuration files in two places:
-
/etc/nginx/sites-available/stores available virtual-host configurations. -
/etc/nginx/sites-enabled/contains the configurations that Nginx should load, commonly as symbolic links to files insites-available.
The symlink lets the same configuration file remain in one canonical location while being enabled or disabled by adding or removing a link.
sudo ln -s /etc/nginx/sites-available/health-app \ /etc/nginx/sites-enabled/health-app # Validate configuration before applying it sudo nginx -t # Reload Nginx after validation succeeds sudo systemctl reload nginx If the link already exists, do not blindly create another one. Inspect it first:
ls -l /etc/nginx/sites-enabled/ The HTTPS debugging incident: curl returned connection refused
I ran:
curl -v https://localhost The verbose output showed attempts to connect to both IPv6 loopback (::1) and IPv4 loopback (127.0.0.1) on port 443, and both attempts failed with connection refused.
That message is important. It means the TCP connection could not be established because nothing was accepting connections at that address and port (or a local rule actively rejected it). It is not yet a certificate-validation problem. TLS negotiation happens only after the TCP connection is established.
A systematic investigation looks like this:
# Is Nginx running? sudo systemctl status nginx # Is any process listening on TCP port 443? sudo ss -lntp | grep ':443' # Is the Nginx configuration valid? sudo nginx -t # Inspect recent service logs sudo journalctl -u nginx -n 50 --no-pager Possible causes include Nginx not running, no listen 443 ssl configuration, a configuration that failed to load, or a service bound to a different address/port.
What this taught me: connection refused and a TLS certificate error are different failure stages. First establish whether the port is listening; investigate certificates only after the TCP connection succeeds.
Nginx request path (conceptual)
flowchart LR C[Client / curl] -->|HTTPS :443| N[Nginx listener] N -->|Select server block| V[Enabled virtual host] V -->|Proxy or serve files| A[Application / static files] If the listener itself is missing, the request never reaches the server-block or application stage.
Nginx logs and log rotation
I also had a setup_nginx_logrotate.md note in the repository. The operational idea behind log rotation is to prevent access and error logs from growing indefinitely. A rotation policy can rotate files on a schedule, keep a defined number of old files, compress older logs, and run a post-rotation action when the service needs to reopen its log files.
The exact policy values from that note are not available in the conversation context, so I am not inventing a retention period or rotation frequency. These are useful inspection commands when working on a real host:
# Inspect the Nginx logrotate configuration cat /etc/logrotate.d/nginx # Debug a logrotate configuration without changing files sudo logrotate -d /etc/logrotate.conf Lesson: Log rotation is part of service operations too. It keeps logs useful for diagnosis without allowing log files to consume disk indefinitely.
Part 2 — Containers and reproducible environments (Day 05)
6. Docker Compose: describing a multi-container application
Docker Compose lets me describe an application made of multiple services in a YAML file. Instead of remembering a long sequence of docker run commands, I declare the services, ports, volumes, and networks in one configuration.
A simplified example:
services: app: build: ./day_05 ports: - "3000:3000" depends_on: - db db: image: postgres:16 environment: POSTGRES_PASSWORD: example volumes: - postgres_data:/var/lib/postgresql/data volumes: postgres_data: The important distinction is between the service declaration and the top-level volume declaration:
-
services.db.volumesmounts a volume into the database container. - Top-level
volumes.postgres_datadeclares the named volume Compose should manage.
The database data directory is stored in the named volume, so recreating the database container does not automatically erase the data held in that volume.
YAML errors I encountered
I hit schema/validation errors such as:
services.db.volume false schema services.volumes.postgres_data false schema The first clue was the key name: Compose expects volumes, plural, not volume.
The second class of error often comes from indentation or placing the top-level volumes: block under services: by mistake.
Correct structure:
services: db: image: postgres:16 volumes: - postgres_data:/var/lib/postgresql/data volumes: postgres_data: YAML indentation is structural. A two-space shift can change which object a key belongs to, even though the text still looks visually close.
docker-compose versus docker compose
I also asked why some commands use a hyphen and others do not.
-
docker-composeis the older standalone Compose command. -
docker composeis the modern Docker CLI plugin form.
For a current Docker Desktop setup, the usual choice is:
docker compose up -d docker compose ps docker compose logs -f The two forms belong to different generations of the Compose tooling. They are not simply two spellings that should be mixed in every environment.
7. Docker Desktop and WSL 2 integration
My development environment uses Ubuntu under WSL 2 while Docker Desktop runs on Windows. I tried to use Docker from the Ubuntu shell and inspected the CLI context:
docker context ls docker context show docker info The selected context was desktop-linux, and the client showed Windows-installed Docker CLI/plugin paths. However, the server side returned a WSL integration message similar to:
The command 'docker' could not be found in this WSL 2 distro. We recommend to activate the WSL integration in Docker Desktop settings. This is a useful example of the difference between the Docker CLI and the Docker daemon/engine:
- The CLI is the client that accepts commands such as
docker ps. - The daemon/engine is the service that actually builds images and runs containers.
- WSL integration connects the Linux distribution's CLI to Docker Desktop's engine.
A working CLI does not automatically prove that the engine is reachable from that distro.
Diagnostic checklist
# Confirm this is WSL 2 and inspect the distro list (run in PowerShell) wsl --list --verbose # In Ubuntu/WSL: which docker docker context ls docker context show docker info The observed integration error was not documented as fully resolved in the available notes. I am keeping it as an open environment issue rather than claiming a fix that was not verified.
8. Multi-stage Docker builds for the Node.js application
The next step was containerising the TypeScript health application. The build log showed a multi-stage image based on node:22-alpine.
A multi-stage Dockerfile separates the environment used to compile the application from the smaller environment used to run it:
flowchart TD A[Source code + package files] --> B[Builder stage: node:22-alpine] B --> C[npm ci] C --> D[npm run build / tsc] D --> E[Generated dist/ files] E --> F[Production stage: node:22-alpine] G[package.json + package-lock.json] --> H[npm ci --omit=dev] H --> F F --> I[Copy dist/ from builder] I --> J[Final runtime image] J --> K[Container starts Node.js] A representative version is:
FROM node:22-alpine AS builder WORKDIR /app COPY package*.json ./ RUN npm ci COPY . . RUN npm run build FROM node:22-alpine AS production WORKDIR /app COPY package*.json ./ RUN npm ci --omit=dev COPY --from=builder /app/dist ./dist EXPOSE 3000 CMD ["node", "dist/health-app.js"] The stages have different jobs:
- Builder stage: installs the complete dependency set, copies source code, and compiles TypeScript. The build command in my log ran
tscand generated thedistoutput. - Production stage: installs only production dependencies and copies the compiled output from the builder stage.
- Final image: contains what is needed to run the app, not the full compilation toolchain and source tree from the builder stage.
Understanding WORKDIR and COPY
The instruction:
WORKDIR /app COPY package*.json ./ means:
- Set
/appas the working directory for later instructions. - Copy files matching
package*.jsonfrom the build context into/appinside the image.
The ./ destination is relative to /app because WORKDIR has already been set.
For copying build output from another stage, an explicit source path is easier to read:
COPY --from=builder /app/dist ./dist Warning: FromAsCasing
The build reported:
WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match This was a style warning caused by writing FROM ... as builder with different casing. It was not the reason the build got stuck. Writing AS consistently removes the warning:
FROM node:22-alpine AS builder The important mistake: using RUN to start a long-running server
The build log eventually showed:
Server running at http://localhost:3000 but the build did not finish. The cause was this Dockerfile instruction:
RUN ["node", "dist/health-app.js"] RUN executes a command while building the image. Since a server is designed to keep running, that command kept the build step alive instead of completing the image build.
The correct instruction is:
CMD ["node", "dist/health-app.js"] The difference is fundamental:
| Instruction | When it runs | Typical purpose |
|---|---|---|
RUN | During image build | Install dependencies, compile code, create directories |
CMD | When a container starts | Define the default process for the container |
ENTRYPOINT | When a container starts | Define the main executable, often with CMD arguments |
After changing RUN to CMD, the build can complete without waiting for the server process. The server starts later, when a container is launched.
Build and run the image
From the repository root:
docker build -t health-app ./day_05 docker run -d \ --name health-app \ -p 3000:3000 \ health-app Then inspect it:
docker ps docker logs health-app The port mapping 3000:3000 means host port 3000 forwards to container port 3000. If the container is running but the app cannot be reached from the host, one thing to verify is that the Node.js server binds to 0.0.0.0 inside the container rather than only to 127.0.0.1/localhost.
Part 3 — CI with GitHub Actions
9. Putting the workflow in the right directory
I initially had the .github directory inside day_05. That is not where GitHub looks for repository-level Actions workflows.
The expected location is:
sre-journey/ └── .github/ └── workflows/ └── ci.yml From the repository root, I moved it with:
mv day_05/.github . This matters because GitHub discovers workflows from .github/workflows/ at the repository root, not from a nested application folder.
10. What the CI workflow is supposed to do
The intended pipeline is:
flowchart TD A[Push or pull request] --> B[GitHub Actions runner] B --> C[Checkout repository] C --> D[Select Node.js version] D --> E[Install dependencies with npm ci] E --> F[Run tests / lint when configured] F --> G[Build TypeScript application] G --> H[Build Docker image] H --> I{All required checks pass?} I -->|Yes| J[PR is eligible to merge] I -->|No| K[PR merge is blocked by branch rules] A simplified workflow for the app living in day_05:
name: CI on: push: branches: [main] pull_request: branches: [main] permissions: contents: read jobs: build-and-test: name: CI Pipeline runs-on: ubuntu-latest defaults: run: working-directory: ./day_05 steps: - name: Checkout repository uses: actions/checkout@v4 - name: Set up Node.js uses: actions/setup-node@v4 with: node-version: 22 cache: npm cache-dependency-path: day_05/package-lock.json - name: Install dependencies run: npm ci - name: Run tests (when a test script exists) run: npm test --if-present - name: Build application run: npm run build - name: Build Docker image run: docker build -t health-app . This is a starting point, not a claim that every optional check was already configured. A real project should add a lint step once a linter and its configuration are present, and should make the test step mandatory once a test suite exists.
Failure 1: npm ci could not find the lock file
The workflow first attempted to run npm ci from the repository root. But the Node application and its package files were inside day_05.
The fix was to make the workflow's shell commands run from the correct directory:
defaults: run: working-directory: ./day_05 This setting applies to run: steps. It does not automatically change the working directory of an action invoked with uses:. For Docker builds, the context must therefore be explicit or the command must run from the intended directory.
Two valid approaches are:
# When running from the repository root - run: docker build -t health-app ./day_05 or, with the working-directory: ./day_05 default:
- run: docker build -t health-app . Also, npm ci expects a lock file such as package-lock.json to be committed. When a project does not yet have one, generate it in the application directory and commit it:
cd day_05 npm install git add package.json package-lock.json git commit -m "Add npm lockfile" The lock file makes dependency installation repeatable across local development and CI.
Failure 2: npm run lint returned “Missing script: lint”
The workflow then reached the lint step and failed with an error similar to:
npm error Missing script: "lint" This does not mean GitHub Actions cannot lint the code. It means day_05/package.json does not define a script named lint.
For example, npm run lint expects a script like this in package.json:
{ "scripts": { "build": "tsc", "lint": "eslint ." } } But adding the script alone is not enough: ESLint must also be installed and configured for the project's TypeScript setup. The right next step is to inspect the existing package.json, choose a linter/configuration that matches the project, and only then add the workflow step.
Until linting is configured, the honest options are to omit that step temporarily or configure it properly. A fake command that always exits successfully would make the pipeline look green without checking anything.
11. Exploring Docker sandboxes and agent-oriented runtimes
Alongside the application container work, I explored a broader question: could there be a runtime designed specifically for AI agents, rather than using a general-purpose container as the entire solution? I also compared the ideas of a sandbox, a virtual machine, and a preconfigured sandbox environment or kit.
The useful conceptual distinction is:
- A container packages a process and its dependencies while sharing the host kernel. It is efficient, but a container by itself should not automatically be treated as a perfect security boundary for arbitrary hostile code.
- A virtual machine runs a guest operating system with its own kernel boundary and generally has a heavier resource footprint.
- A sandbox is the isolated execution environment and policy boundary presented to the workload. Depending on the implementation, it may use containers, a VM/microVM, or multiple layers together. The word sandbox alone does not prove which isolation technology is underneath.
- A kit/template is best thought of as a preconfigured starting environment; the sandbox is the concrete isolated instance in which work executes. Exact product terminology and implementation details should be checked against the specific platform rather than assumed to be universal.
The question about whether every Docker sandbox requires a microVM led to an important design lesson: do not infer the isolation mechanism from the user-facing name. Inspect the architecture and threat model. A product may use containers for one layer and a VM boundary for another, or choose a different implementation entirely.
What an agent-focused runtime would need
A useful first MVP would not just be “Docker with an agent label.” It would need a lifecycle and policy layer around execution:
- Create an isolated workspace for each task or agent session.
- Apply CPU, memory, disk, and execution-time limits.
- Control network egress and access to internal services.
- Inject only the secrets and tools required for that task.
- Capture stdout/stderr, execution metadata, and resource usage.
- Stop and clean up the environment deterministically.
- Make the isolation level explicit, especially when running untrusted code.
flowchart TD A[Agent / API request] --> B[Runtime control plane] B --> C[Policy check: identity, tools, limits] C --> D[Create isolated workspace] D --> E[Execute task in container or stronger sandbox boundary] E --> F[Collect logs and resource metrics] F --> G[Return result] G --> H[Cleanup or preserve approved artifacts] This was an architecture exploration, not a feature that had already been implemented in sre-journey. The key takeaway was to design around the threat model, lifecycle, permissions, and observability—not just around starting a container.
12. Making failed CI block a merge
A workflow can report success or failure, but that alone does not guarantee that GitHub will prevent a merge. The repository needs a branch rule that treats the workflow check as required.
For the main branch, the intended protection is:
- Require pull requests before merging.
- Require status checks to pass.
- Select the CI job/check (for example,
CI Pipeline) as a required status check. - Optionally block force pushes and restrict branch deletion.
In the repository settings, this can be configured through Settings → Rules → Rulesets → New ruleset → New branch ruleset. Target main, set the ruleset to Active, and enable the required pull-request and status-check rules.
The required status check may not appear in the selector until the workflow has run and reported a check to GitHub. Run the workflow once, then return to the ruleset and select the correct check name.
What the merge gate looks like
flowchart TD A[Open pull request to main] --> B[CI workflow runs] B --> C{Required checks pass?} C -->|No| D[Merge blocked] C -->|Yes| E[PR meets CI requirement] E --> F[Merge can proceed, subject to other rules] The separation of responsibilities is important:
- GitHub Actions executes the checks and publishes their result.
- Branch protection / rulesets enforce the policy that required checks must pass before merging.
This is the quality gate that prevents a known failing build from being merged accidentally. If the ruleset has bypass actors configured, those actors may be able to bypass the policy, so the bypass configuration should match the team's intended enforcement level.
Part 4 — Git mistakes and repository hygiene
13. A small Git commit command error
I also hit a simple but useful command-line issue while committing a Compose file. I ran a command in this shape:
git commit -m "added docker-compose.yml" file Git interpreted the final word file as an additional path argument, not as part of the commit message. That caused a pathspec error.
The corrected command keeps the complete message inside the quotes:
git commit -m "added docker-compose.yml file" Then push the branch as usual:
git push origin main The lesson is small but practical: with CLI tools, quote boundaries matter. Text outside the quotes becomes another argument.
14. .dockerignore and build context
The Docker build output showed Docker loading a .dockerignore file and transferring a relatively small build context. This is useful because Docker sends the build context to the builder. Excluding irrelevant files helps avoid sending things such as Git metadata, local dependencies, or generated output when they are not needed.
A typical Node application .dockerignore might contain:
node_modules npm-debug.log .git .github .env coverage The exact entries should match the project. Do not exclude files that the Dockerfile needs in order to build the application.
Part 5 — The debugging habits I am building
The biggest improvement is not memorising a particular command. It is learning to ask a sequence of questions when something fails.
15. My troubleshooting loop
flowchart TD A[Something fails] --> B[Read the exact error] B --> C[Identify the layer] C --> D{Which layer?} D -->|Filesystem / shell| E[Check pwd, paths, permissions] D -->|Service / network| F[Check systemctl, logs, listening ports] D -->|Docker build| G[Inspect Dockerfile stage and instruction] D -->|Compose| H[Validate YAML structure and schema] D -->|CI| I[Check runner directory, scripts, lock files] E --> J[Change one thing] F --> J G --> J H --> J I --> J J --> K[Re-run the smallest relevant check] K --> L{Fixed?} L -->|No| B L -->|Yes| M[Record root cause and prevention] A few examples from this journey:
| Symptom | Layer | Root cause / lesson |
|---|---|---|
curl https://localhost says connection refused | Network/service | No listener accepting the connection on port 443; inspect service state and listening sockets before debugging certificates. |
Compose reports a schema error for volume | YAML/Compose | The key should be volumes; indentation also determines whether the block belongs under a service or at the top level. |
| Docker build appears stuck after printing “Server running” | Dockerfile lifecycle | A long-running process was started with RUN; use CMD to start the service when the container runs. |
Docker reports FromAsCasing | Dockerfile lint/style | FROM and AS keyword casing differs; make it consistent. This is a warning, not the hang. |
| Docker CLI is visible but Docker engine is unavailable in WSL | Environment/integration | The client and daemon are separate; verify WSL integration and engine connectivity. This remained unverified in the notes. |
npm ci fails in GitHub Actions | CI working directory | The app's package.json and lock file live in day_05, not the repository root. |
npm run lint says script missing | Node project configuration | The package does not define a lint script; configure a real linter or omit the step until it exists. |
| PR is not blocked when checks fail | Repository policy | A workflow is not enough; its check must be required by a ruleset/branch protection rule. |
16. What I now understand end to end
I can now connect several layers that initially looked unrelated:
- A developer edits code in the application directory.
- Node dependencies are installed reproducibly from the lock file.
- TypeScript is compiled into
dist/during the Docker builder stage. - A production stage receives only the runtime dependencies and compiled files.
-
CMDstarts the application when the container starts. - Docker Compose can describe the app and supporting services together.
- GitHub Actions repeats installation, tests/build, and image-build checks on a runner.
- A repository ruleset can require those checks before a pull request is merged.
That is a meaningful move from “I can run an app locally” toward “I can make application changes reproducible and protect the main branch from known-bad changes.”
Part 6 — Open items and next steps
A useful learning log should separate completed fixes from things that still need verification.
Verified fixes or corrections captured in the notes
- Corrected the Git commit syntax by keeping the complete commit message inside quotes.
- Moved
.githubout ofday_05to the repository root so GitHub can discover the workflow. - Identified the Compose schema mistakes:
volumesmust be plural, and the top-level volume block must be correctly indented. - Identified the Dockerfile lifecycle mistake: the server-start command belongs in
CMD, notRUN. - Identified the Dockerfile
FROM/AScasing warning as stylistic rather than a fatal error. - Corrected the CI working-directory approach so commands run against
day_05rather than the repository root.
Items that still need a deliberate verification pass
- WSL ↔ Docker Desktop: the integration error was observed, but the available notes do not confirm that it was fully fixed.
- Linting:
npm run lintfailed because the script was missing. Add a real linter and configuration, or keep the lint step out until it is ready. - Tests: make sure the repository has a meaningful test script before treating tests as a required quality gate.
- Branch ruleset: create/activate the ruleset for
main, select the actual CI check name after it has run, and test with a deliberately failing pull request. - Container networking: when running the app, verify it binds to
0.0.0.0inside the container if host access does not work.
Suggested next milestones
- Finish the WSL Docker engine integration and verify
docker infofrom Ubuntu. - Add a proper lint configuration and at least one automated test.
- Make the CI job required for
mainand verify that a failing check blocks merging. - Add image tagging and a secure registry push step only after the build/test gate is reliable.
- Add health checks and runtime observability (logs, metrics, and alerts) to the containerised service.
Final reflection
These five days were not a sequence of perfectly successful commands. They were a sequence of small failures that exposed how the system actually works: Linux paths depend on the current directory; a symlink is a way to enable a configuration without duplicating it; a refused TCP connection is different from a TLS error; Compose is strict about YAML structure; Docker separates build-time instructions from container startup; CI runs in a clean environment with its own working directory; and GitHub needs an explicit branch rule to enforce a quality gate.
The most useful habit I am taking forward is to debug from the outside in: identify the failing layer, read the exact error, inspect the relevant state, make one change, and rerun the smallest meaningful check. That habit is more valuable than memorising commands because it scales from a local Linux service to a production deployment pipeline.
Notes: This article consolidates the Day 01–Day 05 topics and troubleshooting incidents visible in the conversation context. A few early topics are grouped by subject because their exact day-to-folder mapping was not available; unresolved issues are explicitly labelled rather than presented as completed fixes.
