<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/all-docked-up-obmcesxzk" -->

---
title: All Docked Up | daily.dev
description: A humorous anecdote from The Daily WTF about a developer named Ernest who writes a Python script using subprocess to stop and remove Docker containers, rather...
canonical: https://daily.dev/posts/all-docked-up-obmcesxzk
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: All Docked Up | daily.dev
og:description: A humorous anecdote from The Daily WTF about a developer named Ernest who writes a Python script using subprocess to stop and remove Docker containers, rather...
og:url: https://daily.dev/posts/all-docked-up-obmcesxzk
og:image: https://api.daily.dev/og/posts/oBmCeSXzK.png
og:image:alt: All Docked Up
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# All Docked Up

**[The Daily WTF](https://daily.dev/sources/thedailywtf)** · 2 min read · 1 upvotes · 0 comments

## Summary

A humorous anecdote from The Daily WTF about a developer named Ernest who writes a Python script using subprocess to stop and remove Docker containers, rather than using a simple bash script or the Docker Python library. His reasoning — avoiding bash error-handling pitfalls and keeping zero dependencies — leaves his colleague unsure whether he's a terrible or surprisingly pragmatic developer.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://thedailywtf.com/articles/all-docked-up>

## Similar posts on daily.dev

- [Episode \#298: Reducing the Size of Python Docker Containers – The Real Python Podcast](https://daily.dev/posts/episode-298-reducing-the-size-of-python-docker-containers-the-real-python-podcast-lcrqxfswe) · Real Python · 1 upvotes · 0 comments
- [I stopped asking Claude Code to build things, and that's when it got actually useful](https://daily.dev/posts/i-stopped-asking-claude-code-to-build-things-and-that-s-when-it-got-actually-useful-dzddxzegn) · XDA Developers · 0 upvotes · 1 comments

---

Tags: [#python](https://daily.dev/tags/python), [#automation](https://daily.dev/tags/automation), [#docker](https://daily.dev/tags/docker), [#shell](https://daily.dev/tags/shell)

[View this post on daily.dev](https://daily.dev/posts/all-docked-up-obmcesxzk)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"All Docked Up","url":"https://daily.dev/posts/all-docked-up-obmcesxzk","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/all-docked-up-obmcesxzk"},"datePublished":"2026-03-11T11:10:23.710Z","dateModified":"2026-03-11T11:10:43.140Z","description":"A humorous anecdote from The Daily WTF about a developer named Ernest who writes a Python script using subprocess to stop and remove Docker containers, rather...","image":"https://media.daily.dev/image/upload/s--58gMhC4P--/f_auto/v1722860399/public/Placeholder%2012","thumbnailUrl":"https://media.daily.dev/image/upload/s--58gMhC4P--/f_auto/v1722860399/public/Placeholder%2012","isAccessibleForFree":true,"articleSection":"The Daily WTF","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"The Daily WTF","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/d21a6aa61a7244d893a3b3284df8e2ef","url":"https://daily.dev/sources/thedailywtf"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/all-docked-up-obmcesxzk","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,automation,docker,shell","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"The Daily WTF","item":"https://daily.dev/sources/thedailywtf"},{"@type":"ListItem","position":3,"name":"All Docked Up"}]}
```

