Zum Hauptinhalt springen
LIVE
CVSS 7.4CVE-2026-138376 | AsyncSSH 1.13.1 before 2.24.2 contains an improper authentication vulnerability in SSHConnection._match_known_hosts that accumulates trusted client host keys across host-based authentication attempts on one connection. With trust_client_host enabled, attackers holding one known client host's private key can retry naming another known host and log in as users authorized only from that host.CVSS 7.6CVE-2026-138377 | AsyncSSH 1.13.1 before 2.24.2 contains an improper certificate validation vulnerability that allows remote clients to authenticate as users by abusing X.509 certificates matched in known_client_hosts. Attackers can make a failed host-based authentication attempt with any host key, adding host-only CA certificates to the trust anchors, then authenticate using user certificates issued under those CAs.CVSS 9.1CVE-2026-138378 | react-native-pure-jwt before 3.1.1 on Android contains a signature verification bypass vulnerability that allows unauthenticated attackers to forge tokens because RNPureJwtModule decode() calls JJWT parse() without algorithm pinning. Attackers can craft a token with header alg none and an empty signature to have arbitrary claims accepted as verified, forging identities or roles.CVSS 6.9CVE-2026-138379 | flare-redact before 1.13.1 contains a redaction bypass vulnerability that leaks secrets because the redact() object walker masks sensitive keys only when values are strings. Numbers, objects, arrays and binary data under keys such as password, cvv, pin, cookie or authorization pass through unchanged, exposing secrets in clear text to logger, Sentry, gateway and Fluent Bit sinks.CVSS 6.9CVE-2026-138380 | MediaInfoLib before 26.10 contains a heap-based buffer over-read vulnerability in File_Ogg::Data_Parse() that allows attackers to read beyond heap buffers via crafted Ogg segment sizes. Attackers can supply an Ogg file whose segment sizes exceed the page payload, wrapping the unsigned offset check and causing memcpy over-reads that crash the process or leak heap memory.CVSS 6.9CVE-2026-138381 | GNU LibreDWG 0.14 before 0.15 contains a heap use-after-free vulnerability in in_dxf.c new_object() where the OLE2FRAME oleclient pointer references freed memory after DXF import. Attackers can supply a DXF file with an OLE2FRAME entity to crash dxfwrite or similar applications and leak freed heap contents into exported output.CVSS 10.0CVE-2026-138227 | A vulnerability was found in D-Link R95 1.04B04Beta. This affects the function SetTimeSettings of the file /bin/ssi of the component DHMAPI. Performing a manipulation of the argument TZLocation results in os command injection. Remote exploitation of the attack is possible. The exploit has been made public and could be used.CVSS 10.0CVE-2026-138226 | A vulnerability has been found in D-Link R95 1.04B04Beta. Affected by this issue is the function SetSecureDNSSettings of the file /bin/ssi of the component DHMAPI SOAP interface. Such manipulation of the argument URI leads to os command injection. The attack may be launched remotely. The exploit has been disclosed to the public and may be used.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

Debugging Containers From the Terminal: A Practical Docker CLI Workflow

A container that's misbehaving is one of those problems where your instinct works against you. The pressure pushes you toward the dramatic move — restart it, r…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Cloud & Tech-Stack · 9 Min. Lesezeit
Quelle: dev.to
Rubrik: Sichere Programmierung

A container that's misbehaving is one of those problems where your instinct works against you. The pressure pushes you toward the dramatic move — restart it, redeploy, rebuild the image — before you actually know what's wrong. Most of the time the answer was sitting one cheap command away, and you skipped past it.



What's kept me calm through enough of these is having a fixed order. Same sequence every time, cheapest check first, moving up a layer only when the current one doesn't answer the question. When the clock is running, the order is what saves you, because you're not deciding what to do next — you already decided, months ago, when nothing was on fire. Here's the exact sequence I run on a container that's crashing, restarting, hanging, or just acting wrong.






The mental model: start cheap, move up



Every step below costs almost nothing to run and rules out a whole class of causes. The discipline is to actually do them in order instead of jumping to the exciting theory. A crashing container is almost always one of a few things: it exited with a telling status, it's screaming in its logs, its config or mounts are wrong, it's hitting a resource limit, or something is killing it from outside. The workflow walks that list from cheapest to most involved.






Step 1: docker ps -a — what's the status and exit code?



First question, always: what state is the container actually in? Not what you think it's in — what Docker says.




docker ps -a






The -a is non-negotiable here. A crashed container doesn't appear in plain docker ps, so if you skip the flag you'll conclude "it's gone" when it actually exited two seconds after starting. Look at the STATUS column:





  • Up 10 minutes — it's running; your problem is inside a live container (skip to logs).


  • Restarting (1) 5 seconds ago — it's in a crash loop. The number in parentheses is the last exit code. This is the classic "keeps dying on startup" case.


  • Exited (0) 3 minutes ago — it stopped cleanly. Exit 0 means the main process finished normally; maybe it did its job and there's no bug at all.


  • Exited (137) or Exited (143) — it was killed by a signal. More on those in a second, because they're the ones people misread.



The exit code is the single most useful number on the screen, and it's free. Read it before you form any theory.






Reading exit codes accurately



A few exit codes come up constantly, and getting them right saves you from chasing the wrong problem:





  • 0 — clean exit. The process ended without error.


  • 1 — a generic application error. Whatever ran, it failed on its own terms; the logs will tell you why.


  • 125 — the docker run command itself failed (bad flag, bad image reference). The container never really started.


  • 126 — the command in the container was found but isn't executable (permissions, or it's not actually a binary).


  • 127 — command not found. Usually a wrong path or a missing binary in the image.


  • 137 — the process received SIGKILL (signal 9). The convention is 128 + signal, so 128 + 9 = 137. In containers this most often means the kernel's OOM killer stopped it for exceeding a memory limit, or Docker force-killed it after a stop timeout. It is not automatically "out of memory" — it means SIGKILL, and OOM is the most common reason. Confirm it, don't assume it.


  • 143 — the process received SIGTERM (signal 15). 128 + 15 = 143. This is a graceful stop request — usually the container was told to shut down (a docker stop, an orchestrator scaling down). Often this is expected behavior, not a bug.



That distinction between 137 and 143 matters. 143 is usually "something asked it to stop politely and it did." 137 is "something killed it hard" — and that's the one worth investigating.






Step 2: docker logs --tail then -f — what did it say on the way down?



Now that you know the status, read what the container actually said. Start bounded — you don't want the entire history — then follow if you need live output:




# Last 100 lines, which usually includes the death rattle
docker logs --tail 100 web-1

# Add timestamps to correlate with other events
docker logs --tail 100 -t web-1

# If it's still running or restarting, follow it live
docker logs -f web-1






For a crash loop, --tail is perfect: the last thing before the exit is almost always the cause — an unhandled exception, a failed connection to a dependency, a missing environment variable. If the container is restarting fast, docker logs -f web-1 lets you watch a fresh crash happen in real time.



One honest caveat: docker logs only shows you what the process wrote to stdout and stderr. If the app logs to a file inside the container instead, this comes back empty, and that emptiness is itself a clue — either the app died before it could log, or its logs are going somewhere you'll have to go get (which is what Step 4 is for).






Step 3: docker inspect --format — state, restarts, mounts, health



If the logs didn't hand you the answer, ask Docker for the structured facts. Raw docker inspect is a wall of JSON; --format pulls out exactly the field you care about:




# Exact state and exit code
docker inspect --format '{{ .State.Status }} {{ .State.ExitCode }}' web-1

# How many times has it restarted? A high count confirms a real loop.
docker inspect --format '{{ .RestartCount }}' web-1

# Was it OOM-killed? This is the definitive answer to the 137 question.
docker inspect --format '{{ .State.OOMKilled }}' web-1

# What's actually mounted where?
docker inspect --format '{{ range .Mounts }}{{ .Source }} -> {{ .Destination }}{{ "\n" }}{{ end }}' web-1

# If the image defines a healthcheck, what's it reporting?
docker inspect --format '{{ .State.Health.Status }}' web-1






.State.OOMKilled is the one that turns a guess into a fact. Saw a 137 and suspect memory? This returns true or false and settles it. RestartCount confirms whether you're really in a loop or just saw one unlucky restart. And the mounts check catches a whole category of "works locally, breaks in the container" bugs — a volume pointing at the wrong host path, or a config file that isn't where the app expects it.






Step 4: docker exec -it ... sh — get inside and poke around



If the container is running (or restarting slowly enough to catch), step inside and look with your own eyes:




docker exec -it web-1 sh
# or bash, if the image has it
docker exec -it web-1 bash






exec starts a new process in the existing container without disturbing the main one, so it's safe on something live. Once inside, check the things logs and inspect can't easily show you:




# Is the config file actually there and correct?
cat /etc/app/app.conf

# Are the environment variables what you expect?
env | sort

# Can it reach its dependencies?
nslookup db-1
wget -qO- http://db-1:5432 || echo "cannot reach db-1"

# Is the disk full inside the container?
df -h






An important limitation: if the container has already exited, exec won't work — there's no running process to exec into. For a container that dies instantly on startup, the trick is to override its entrypoint and start a shell instead, so you can look around a stopped-but-openable version:




docker run --rm -it --entrypoint sh myapp:1.4.2






Now you're in the image's filesystem without the failing startup command, and you can check paths, permissions, and whether that binary even exists.






Step 5: docker stats — is it under resource pressure?



If the container runs but is slow, unresponsive, or getting OOM-killed, look at live resource usage:




# Live view of all containers
docker stats

# One snapshot for one container, then exit
docker stats --no-stream web-1






Watch the MEM USAGE / LIMIT column especially. If memory is pinned right against the limit, you've found your 137 — the container is bumping the ceiling and the OOM killer is doing its job. High steady CPU explains sluggishness. This is also where you catch the slow leak: memory climbing over time until the inevitable kill, which looks like a container that "randomly" restarts every few hours.






Step 6: docker events — who's acting on this container?



If you've gotten this far and the container is dying but nothing inside it explains why, widen the lens. docker events streams what the daemon is doing, so you can see kills, stops, and OOM events as they happen:




# Watch daemon events live, filtered to one container
docker events --filter container=web-1

# Or look at a recent window after the fact
docker events --since 30m --filter container=web-1






This is how you catch an external actor — an orchestrator stopping the container, a health check triggering a restart, a docker kill from a script somewhere. When the inside of the container looks innocent, events tells you what the outside is doing to it.






A worked example



Say web-1 is stuck restarting. The order pays off like this: docker ps -a shows Restarting (137). That 137 says SIGKILL, and my first suspect is memory — but I don't assume. docker logs --tail 50 web-1 shows the app booting normally and then just stopping mid-request, no exception. That absence is a hint: clean logs plus a hard kill points away from an application bug. docker inspect --format '{{ .State.OOMKilled }}' web-1 returns true — now it's a fact, not a hunch. docker stats --no-stream web-1 confirms memory pinned at the limit. The fix isn't in the code; it's a too-low memory limit (or a genuine leak worth profiling). Six cheap commands, and I never once guessed.






Making it repeatable



The reason this works isn't the commands — it's that they're always in the same order, so under pressure you're executing a routine instead of improvising. Write it down as a runbook for your team: status, logs, inspect, exec, stats, events. Six steps, cheapest first. When something breaks at 3 a.m., the person on call shouldn't have to reinvent the sequence.



If you want the reference versions of these — including what specific Docker errors mean when they show up in step one or two — I keep a set of Docker error-fix guides at devopsaitoolkit.com/categories/docker, and the broader Docker toolkit lives at devopsaitoolkit.com/stacks/docker.






Wrapping up



The durable lesson isn't any single command — it's the habit of starting cheap and moving up one layer at a time. A misbehaving container feels chaotic, but the diagnosis almost never is: read the exit code, read the logs, confirm with inspect, then go inside. Fix the order in your head once, and every future incident gets a little quieter.

Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Dyskusja społeczności i komentarze

🌐 Dołącz do głównego czatu

Rozpocznij dyskusję w strumieniu transmisji Social Chat lub prześlij wyżej wkład ekspercki przez formularz uzupełnień.

Community Rating & Social Proof
⭐ Ocena czytelników
–
Ø / 5.0
Brak recenzji czytelników
Czy ten artykuł był pomocny?
0
Dodaj swoją ocenę
Ocena szczegółowa (opcjonalnie)
Treść i jakość
Źródło i wiarygodność
Aktualność
Security Briefing Bezpłatnie · Wypisanie 1 kliknięciem

Intelligence Digest - bezpłatnie

Codziennie najważniejsze wiadomości bezpieczeństwa · można pobrać w każdej chwili

Powiązany klaster opowieści i źródła (wektor AI)

6 Cluster
25 źródeł
CVE-2026-135550 | Mozilla Firefox Web Codecs memory corruption (Nessus ID 388625)
VulDB Updates 1 godzinę temu
24 kolejnych źródeł
VulDB Updates1 godzinę temuCVE-2026-135551 | Mozilla Firefox up to 153.7/160 Layout use after free (Nessus ID 388625) VulDB Updates1 godzinę temuCVE-2026-135552 | Mozilla Firefox up to 115.45/153.7/160 Canvas2D use after free (Nessus ID 388625) VulDB Updates1 godzinę temuCVE-2026-135554 | Mozilla Firefox up to 115.45/153.7/160 Navigation use after free (Nessus ID 388625) VulDB Updates1 godzinę temuCVE-2026-135556 | Mozilla Firefox up to 115.45/153.7/160 JIT memory corruption (Nessus ID 388625) VulDB Updates3 godziny temuCVE-2026-135540 | Mozilla Firefox up to 115.45/153.7/160 JIT memory corruption (Nessus ID 388625) VulDB Updates3 godziny temuCVE-2026-135539 | Mozilla Firefox up to 115.45/153.7/160 CSS Object Model use after free (Nessus ID 388625) VulDB Updates3 godziny temuCVE-2026-135542 | Mozilla Firefox up to 115.45/153.7/160 Layout buffer overflow (Nessus ID 388625) VulDB Updates3 godziny temuCVE-2026-135541 | Mozilla Firefox up to 115.45/153.7/160 XSLT use after free (Nessus ID 388625) VulDB Updates3 godziny temuCVE-2026-135544 | Mozilla Firefox up to 115.45/153.7/160 Navigation memory corruption (Nessus ID 388625) VulDB Updates3 godziny temuCVE-2026-135545 | Mozilla Firefox up to 153.7/160 Editor memory corruption (Nessus ID 388625) VulDB Updates3 godziny temuCVE-2026-135543 | Mozilla Firefox up to 115.45/153.7/160 Networking memory corruption (Nessus ID 388625) VulDB Updates3 godziny temuCVE-2026-135547 | Mozilla Firefox up to 115.45/153.7/160 Networking sandbox (Nessus ID 388625) VulDB Updates3 godziny temuCVE-2026-135549 | Mozilla Firefox up to 115.45/153.7/160 XSLT use after free (Nessus ID 388625) VulDB Updates3 godziny temuCVE-2026-135548 | Mozilla Firefox up to 115.45/153.7/160 Layout use after free (Nessus ID 388625) VulDB Updates4 godziny temuCVE-2026-135533 | Mozilla Firefox up to 115.45/153.7/160 Layout Tables off-by-one (Nessus ID 388625) VulDB Updates4 godziny temuCVE-2026-135536 | Mozilla Firefox up to 115.45/153.7/160 DOM Editor uninitialized pointer (Nessus ID 388625) VulDB Updates4 godziny temuCVE-2026-135535 | Mozilla Firefox up to 115.45/153.7/160 Skia input validation (Nessus ID 388625) VulDB Updates4 godziny temuCVE-2026-135537 | Mozilla Firefox up to 115.45/153.7/160 Layout Text/Fonts out-of-bounds (Nessus ID 388625) VulDB Updates5 godzin temuCVE-2026-135525 | Mozilla Firefox up to 115.45/153.7/160 WebRender use after free (Nessus ID 388625) VulDB Updates5 godzin temuCVE-2026-135526 | Mozilla Firefox up to 115.45/153.7/160 Networking use after free (Nessus ID 388625) VulDB Updates5 godzin temuCVE-2026-135527 | Mozilla Firefox up to 115.45/153.7/160 DOM/HTML use after free (Nessus ID 388625) VulDB Updates5 godzin temuCVE-2026-135528 | Mozilla Firefox up to 153.7/160 HTTP race condition (Nessus ID 388625) VulDB Updates5 godzin temuCVE-2026-135530 | Mozilla Firefox up to 115.45/153.7/160 HTTP sandbox (Nessus ID 388625) VulDB Updates5 godzin temuCVE-2026-135529 | Mozilla Firefox up to 153.7/160 Text sandbox (Nessus ID 388625)
17 źródeł
Apple Cyber Monday Deals (2026): AirPods, iPads, MacBooks, and More
WIRED 18 minut temu
16 kolejnych źródeł
The Mac Observer26 minut temuAqara W200 thermostat is $119.99 for Cyber Monday, $40 off and Apple Home ready Latest from TechRadar44 minuty temuCyber Monday mini PC deals 2026 live — top tiny desktops from GMKtec, Geekom, Minisforum, and more as the Black Friday sale continues The Mac Observer51 minut temuSonos Beam Gen 2 is $339 for Cyber Monday, $160 off and $359 under two HomePods The Mac Observer1 godzinę temuMagic Mouse in black drops to $79.99 for Cyber Monday, $19 under Apple’s $99 The Mac Observer1 godzinę temuGarmin fenix 8 47mm drops $250 to $749.99 for Cyber Monday, $49 under Ultra 4 Latest from TechRadar2 godziny temuI've been waiting for a better deal on the Philips LatteGo 4400 — and Amazon has delivered a record-low price for Cyber Monday Latest from TechRadar2 godziny temuLooking to get a last-minute gaming gift before Cyber Monday is over? WIRED3 godziny temuLast Call for Black Friday iPad Deals (2026): Save Up to $100 Latest from Windows Central3 godziny temuWhy I bought a handheld over a gaming laptop on Cyber Monday Latest from TechRadar3 godziny temuI found the most capable PC under $300 for Cyber Monday — Origimagic's C7 Windows 11 Pro machine packs dual Thunderbolt 4, 2.5Gb LAN, a Core 3 100U, 16GB of RAM, and a 512GB SSD OS X Daily3 godziny temuCyber Monday Deals: $300 Off 16″ PROLED MacBook Pro, $100 Off AirPods Pro 3, $100 Off iPad Air, & More Latest from TechRadar4 godziny temuCyber Monday home office deals 2026 live — our top workspace picks from FlexiSpot, Dell, Anker, Logitech and more as Black Friday sale rolls on Latest from TechRadar4 godziny temuThe best Cyber Monday deals in the UK in 2026: top picks from Amazon, Argos, Ninja, Lego and more Latest from TechRadar4 godziny temuBlack Friday laptop deals 2026: the huge savings on MacBooks, Chromebooks and Windows 11 laptops still available from Apple, Dell, HP and many more Latest from TechRadar4 godziny temuCyber Monday Australia laptop deals for 2026: score up to 52% off Lenovo, Apple, Dell, HP and more Latest from TechRadar4 godziny temuAmazon Australia Cyber Monday deals
12 źródeł
CVE-2026-116159 | ImageMagick up to 6.9.13-57/7.1.2-32 CDL Option memory leak (Nessus ID 388637)
VulDB Updates 1 godzinę temu
11 kolejnych źródeł
Podobne wkłady
🔍 Verwandte News

Auch interessante Nachrichten Debugging Containers From the Terminal: A Practical Docker CLI Workflow

Thematisch verwandte Begriffe: Debugging, Containers, From, Terminal · 6 Treffer

Laden...

Składki są załadowane...

Laden...

Filmy są załadowane...

Laden...

Składki są załadowane...

Laden...

Filmy są załadowane...

Laden...

Składki są załadowane...

Laden...

Filmy są załadowane...

Laden...

Składki są załadowane...

Laden...

Filmy są załadowane...

Uwagi Komentarze są ładowane..
Rysunek do aktualizacji
Widżety i tematy
Ładowanie widżetów…
Następny wpis