Hi,
I wrote my 1st own Bitbucket Pipe using Python. It's supposed to tag a docker image and push it to a registry. So I have to use Docker within the pipe itself. Everything is working nicely locally. But using my pipe in a Bitbucket pipeline fails because I don't get Docker to work. Here is what I try to do:
def get_client(self):
if self.docker_client is None:
self.docker_client = docker.APIClient(base_url='unix://var/run/docker.sock')
return self.docker_clientThe complete code of my pipe can be found in this public repository: https://bitbucket.org/humanitec/push-to-humanitec/src/master/
I cannot find any documentation on how to connect to Docker from within a Bitbucket Pipe. Does anybody have experience with that?
Thanks and cheers,
Christoph