Using this Bootstrap row/column combination works regardless of the size of your table or screen, no CSS necessary:
<div class="row justify-content-center">
<div class="col-auto">
<table class="table table-responsive">
....table stuff....
</table>
</div>
</div>