Prioritize name lookup before ID lookup to reduce confusion
Addresses #8069

Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>