Unable to subscribe after docker system prune

Posted on

I am testing some stuff where I want to use a RedHat Linux image on Docker. First time I used it, the image was downloaded and I was able to subscribe to it, using my RedHat development account.
After a couple of different versions I wanted to clean up my Docker environment, because it was taking up a lot of diskspace.
When I wanted to build my container again, I got tthe following message, when subscribing to the image:

Unable to find available subscriptions for all your installed products.
ERROR: Service 'reader-app' failed to build: The command '/bin/sh -c subscription-manager register --username --password --auto-attach' returned a non-zero code: 1

Anyone an idea on how to solve this?