The default docker stats table is wide, and on a small terminal it wraps into a mess. A Go template keeps the columns you actually look at.
The reference lists the placeholders you can use: .Container, .Name, .ID, .CPUPerc, .MemUsage, .MemPerc, .NetIO, .BlockIO and .PIDs. The table directive adds a header row.
docker stats --no-stream --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}"
With --no-stream you get one snapshot and the command ends, which is what you want in a script or when you paste the output into a message. Without it the table keeps refreshing like top.
A line without table prints just the values, one container per line, which is easier to feed into other tools:
docker stats --no-stream --format "{{.Name}} {{.MemPerc}}" | sort -k2 -n -r | head
The memory percentage is relative to the container’s limit, or to the host’s memory when there is no limit, so a container showing 2% on a big machine can still be the largest one. Sort by the absolute usage if you hunt for the hungry one. According to the docs, .MemPerc and .PIDs are not available on Windows.
Further reading: docker container stats
Going deeper: Keep a domain pointed at your home with Cloudflare DDNS on Unraid