abiosoft / abiosoft/colima

Python Docker SDK cannot create client from_env

オープン
#468 コメント 8 件 リアクション 5 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
30.8k
フォーク
613
PR マージ指標
30日以内にマージされた PR はありません

説明

### Description

After switching from Docker Desktop to Colima, tooling written in Python which creates a Docker client using [from_env()](https://docker-py.readthedocs.io/en/stable/client.html#docker.client.from_env) fails with the following error:

```shell
Error connecting to Docker: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
```

### Version

Colima Version: 0.4.6
Lima Version: 0.13.0
Qemu Version: 7.1.0

### Operating System

- [X] macOS Intel
- [ ] macOS M1
- [ ] Linux

### Reproduction Steps

```python
import docker
client = docker.from_env()
```

### Expected behaviour

Client is an instantiated Docker client object.

### Additional context

I understand that this is probably not your concern given it is the official Docker Engine SDK that is breaking.

However, given Colima is designed to be an alternative way of running Docker on your workstation it would be great to have a workaround so it can continue to work as a drop-in replacement for Docker Desktop.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。