Unable to log into my discourse - "You can't log in as xxx from that IP address."

Using the standard Docker install:

cd /var/discourse
sudo -E ./launcher enter app
rails c
s = ScreenedIpAddress.match_for_ip_address("...")
s.destroy

You might have used a different name than “app” for your yml file.