memesearch
Docker Breaks the Old Solution

Docker Breaks the Old Solution

Download Find similar pictures
Text on the meme
I generally put something like this in settings.py: import socket try: HOSTNAME = socket.gethostname() except: HOSTNAME = 'localhost' Your solution does not work, if you use Docker. It will show the container ID instead of the URL. My solution was written before Docker existed. Sorry.
What it means

A Stack Overflow-style question shows a Python hostname workaround that defaults to “localhost.” The joke is that Docker changes the hostname to a container ID, while the commenter dismisses the criticism by saying the code predates Docker. It is used as a reaction to old code that worked perfectly until modern infrastructure broke its assumptions. EN: A Stack Overflow-style question shows a Python hostname workaround that defaults to “localhost.” The joke is that Docker changes the hostname to a container ID, while the commenter dismisses the criticism by saying the code predates Docker. It is used as a reaction to old code that worked perfectly until modern infrastructure broke its assumptions.

Objects
Tags
Source
Type
image
Size
800×358 · 32.9 KiB
Mood
sarcastic, nerdy
Language
en
Added