This class is a base class for Docker Container and Image. It is implementing accessor methods for the models attributes.