My guess is, you did not leave them long enough. They also did not have the right nute balence unless you used a specialist fert. That, and you used 'eating potatoes' rather than 'seed potatoes'
Nutes
To much nitrogen and they will just keep growing folliage. Store bought compost will be higher in Nitrogen than Phosphorus and Potasium. The compost you had will have been defecient in potasium, unless it was branded as 'soil for growing potatoes' - I have never seen such a product however.
Time
As has been said, you did not give them enough time. A good sign development of tubers is underway is flowering. Be advised that not all crops will flower however. A better indicator however, is the type of potatoes you are growing - first earlies, second earlies or maincrop. Each has different planting to cropping times, first earlies being the fastest, maincrop being the longest. When the number of weeks is up for the type you are growing, if the folliage still looks good and you are confident the potatoes will not be being damaged to much by slugs and the risk of blight is low, leave them.
When the folliage yellows and goes over, the potatoes cannot be taking on much more growth. Have a root around then and see what you have.
Me, well, I sit down inbetween the hills and work my hands in when the first plants are starting to go, or when they ar at the time they should have produced by and take some. Only when all of the foliage goes over do I harvest, or when I know blight is in the area.
Seed
Buy seed potatoes. Conventionally grown 'Food' potatoes have been bred to suit conditions on a farm - a very regulated fertilizer and spraying regime. I have heard it said that conventially grown potatoes are sprayed 12 times on average in the UK over the growing season. I do not spray at all. Store bought are 'athletes' they need vey specific conditions and diet to perform.
That is not to say some do not have some success, far from it, but you will have much easier success with seed potatoes. That, and store bought may contain viruses that can harm your yeilds, your crop and you soil for a couple of years to come. Seed potatoes should be certified to be virus free.
Other
I would have also used larger containers. Growing them in soil for near 30 years, I know their roots will have not liked a 5 gal bucket, watering would have been hard on them, in all likelyhood, they would either be too wet or too dry.
Keep on going tho, Rome was not built in a day. Knowledge is built from problems.