Fixed #5282 - deprecated -name syntax

Docker-DCO-1.1-Signed-off-by: James Turnbull <james@lovedthanlost.net> (github: jamtur01)
Merge pull request #5284 from jamtur01/tickets/5282

Fixed #5282 - deprecated -name syntax