${...}
— это конструкция, используемая для расширения параметров оболочки
.
When braces are used, the matching ending brace is the first ‘}’ not escaped by a backslash or within a quoted string, and not within an embedded arithmetic expansion, command substitution, or parameter expansion.
Судя по вашему примеру, вам действительно нужно Подстановка команд
Command substitution allows the output of a command to replace the command itself.
Это будет записано как:
RC=$(docker wait dat_abcdetl_1)