Bootstrap containers provide standardized padding and max-width vales at various windowsizes in an attempt to be responsive as is Bootstrap as a whole. Containers also center elements on the window width.
Container use: class = "container"
<div class="container" style="height: 100px; background: lightgrey;"></div>
Fluid Container use: class = "container-fluid"
Container-fluid spans the width of the window...no padding.
<div class="container-fluid; background: lightgrey;" style="height: 100px"></div>
Container with standard Bootstrap colors: class = "bg-success"
<div class="container-fluid bg-success" style="height: 100px"></div>
Visit Bootstrap Containers