Raise exception if building docker image fails
Test for registration with non-existent package