NewTarget receives the specified target
and determines which containers should be targeted.
The target might be extended to dependencies if --extend is given.
Additionally, the target is sorted alphabetically.