Standard containers usually have 5 lashing points/D rings on the top rail, so consider their positions before adding more load to your shelf. The number of brackets needed will depend on your desired shelf length and container size.
eBay