Fixes #8031: container model initialization is no longer order-dependent

Currently container model image and tag attributes must be initialized in a specific order. This removes this order dependency.
@witlessbird I think you might want to do the same in the `sets a docker image and tag for a new container` test, it's setting strings at the moment.