@@ -153,10 +167,22 @@ class Container(models.Model):
returnstr('Container "{}" of user "{}" with image name "{}" and image tag "{}" on registry "{}"'.format(self.name,user_str,self.image_name,self.image_tag,self.registry))
defsave(self,*args,**kwargs):
# Check that digest starts with sha256:
ifself.image_tagisNone:
raiseValueError('The image tag field must be always set (e.g. using "latest")')