Google-api-client in Docker

Hi there. Does anyone have any experience of using google-api-client with Docker? I have an Rails+Docker app. And I constantly face the

“error”: “invalid_grant”, “error_description”: “Bad Request”

error with the authorization.

Although when I try to authorize through console everything is fine.