Symptom: after rebuilding a service with a fixed config, requests still failed with 401 Unauthorized. The new config was right. The logs from the new containercontainer A lightweight, isolated package of an application and its dependencies. It shares the host's kernel, so it starts in seconds, unlike a full virtual machine. showed nothing at all.
Cause: an old container from an earlier test, with a random DockerDocker A tool for packaging software and everything it needs into containers, so it runs the same way on any machine. name, was still running and holding the port. Every request went to it, with its stale settings. The new container sat in Created, never started, because the port was taken.
Fix: remove the stray container, then force-recreate the real one.
docker ps -a # everything, including stopped and Created
docker ps --filter publish=3000 # who owns this port?
docker rm -f <stray-container>
docker compose up -d --force-recreate
Lesson: before debugging the thing you think is answering, prove it’s the thing answering. It’s the same instinct as checking which server a DNSDNS Domain Name System. The internet's phone book, turning names like cyberviking.ca into the IP addresses computers actually connect to. name really points to, or which account a token really belongs to. Assumptions about identity are where a lot of incidents start.
Applies to: Docker and Docker ComposeDocker Compose A single file that describes a set of containers, their settings and how they connect, so a whole service can be started or rebuilt with one command. on any host. Checked October 2026.



