How to connect to google cloud docker service using python in cloud run
I would like to connect to a docker service from a cloud run serverless with python. For example when I run this inside a cloud run service:
import docker
client = docker.from_env()
I get this error: docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
I should create env file but I don’t know what should be the content of this file.
I want to open and close various containers using this docker client.
What should I specify in my env file to connect to my GCP project?
Read more here: Source link
