to punish someone in order to keep order and control:
The officers were later disciplined.
to teach someone to obey rules and control their behaviour:
Different cultures have different ways of disciplining their children.
to control the way you work, how regularly you do something etc, because you know it is good for you:
Try to discipline yourself to write every day.