Docker Mac lost connection to API

After writing the previous answer I remembered I already saw similar cases.

Please, check this post:

You will probably need to use named volumes.