<div class="container">
<div class="row row-images">
<div class="row">
<div class="col-md-2">
<a href="#" class="thumbnail"><img src="https://via.placeholder.com/150/FF7400/FFFFFF" /></a>
</div>
<div class="col-md-2">
<a href="#" class="thumbnail"><img src="https://via.placeholder.com/150/FF7400/FFFFFF" /></a>
</div>
<div class="col-md-2">
<a href="#" class="thumbnail"><img src="https://via.placeholder.com/150/FF7400/FFFFFF" /></a>
</div>
<div class="col-md-2">
<a href="#" class="thumbnail"><img src="https://via.placeholder.com/150/FF7400/FFFFFF" /></a>
</div>
<div class="col-md-2">
<a href="#" class="thumbnail"><img src="https://via.placeholder.com/150/FF7400/FFFFFF" /></a>
</div>
<div class="col-md-2">
<a href="#" class="thumbnail"><img src="https://via.placeholder.com/150/FF7400/FFFFFF" /></a>
</div>
</div>
</div>
</div>
/*
1. Füge die Klasse .row-images hinzu
2. Passe das Padding an, wie gewünscht
*/
.row-images .col-md-1,
.row-images .col-md-2,
.row-images .col-md-3,
.row-images .col-md-4,
.row-images .col-md-5,
.row-images .col-md-6,
.row-images .col-md-7,
.row-images .col-md-8,
.row-images .col-md-9,
.row-images .col-md-10,
.row-images .col-md-11,
.row-images .col-md-12 {
padding-left: 5px;
padding-right: 5px;
}