Hello Ganesh,
By docker component, do you mean that you are using a deck?
If so, you can select context for a button set that you have added within a deck by selecting the Button Set and clicking the context tab and setting the context there.
Here is another community post discussing the same: https://community.skuid.com/t/button-in-deck
Please let me know if you have additional questions or need more info.
Clark