Ring vaccination can be a highly effective control strategy for an emerging disease or in the final phase of disease eradication, as witnessed in the eradication of smallpox. However, the impact of behavioural dynamics on the effectiveness of ring vaccination has not been explored in mathematical models. Here, we analyze a series of stochastic models of voluntary ring vaccination. Contacts of an index case base vaccinating decisions on their own individual payoffs to vaccinate or not vaccinate, and they can also imitate the behaviour of other contacts of the index case. We find that including imitation changes the probability of containment through ring vaccination considerably. Imitation can cause a strong majority of contacts to choose vaccination in some cases, or to choose non-vaccination in other cases—even when the equivalent solution under perfectly rational (non-imitative) behaviour yields mixed choices. Moreover, imitation processes can result in very different outcomes in different stochastic realizations sampled from the same parameter distributions, by magnifying moderate tendencies toward one behaviour or the other: in some realizations, imitation causes a strong majority of contacts not to vaccinate, while in others, imitation promotes vaccination and reduces the number of secondary infections. Hence, the effectiveness of ring vaccination can depend significantly and unpredictably on imitation processes. Therefore, our results suggest that risk communication efforts should be initiated early in an outbreak when ring vaccination is to be applied, especially among subpopulations that are heavily influenced by peer opinions.