The article previously hosted here is now published on my website: My ErgoDox Keyboard.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#Usage docker-machine-update-hosts.sh hosts.conf default | |
#arg1 is a configuration file with hosts | |
#arg2 is the docker-machine name e.g. default | |
DOCKER_IP=$(docker-machine ip $2) | |
echo "$2 ip: $DOCKER_IP" | |
#Remove existing lines from hosts | |
while IFS='' read -r line || [[ -n "$line" ]]; do |
There's some weird stuff in some server responses to /api/v1/instance
and /api/v2/instance
.
Here's some I've seen in the wild. Format is:
- Heading with server type (e.g., "akkoma") and whether this was v1 or v2
- Then the error when trying to parse the data
- Then a list of all the servers that triggered the same parse error, with their reported version number
Some of these have been fixed in newer versions of the servers but the fixes haven't fully rolled out.