We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Podman is an alternative to docker. It's used as alias docker=podman.
alias docker=podman
However, this is incompatible with grpc4bmi. In grpc4bmi, we used the docker python library like so:
import docker client = docker.from_env()
This fails with
... ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')) During handling of the above exception, another exception occurred: DockerException Traceback (most recent call last) Cell In[4], line 1 ----> 1 docker.from_env() File ~/mambaforge/envs/ewatercycle/lib/python3.10/site-packages/docker/client.py:96, in DockerClient.from_env(cls, **kwargs) 94 version = kwargs.pop('version', None) 95 use_ssh_client = kwargs.pop('use_ssh_client', False) ---> 96 return cls( 97 timeout=timeout, 98 max_pool_size=max_pool_size, 99 version=version, 100 use_ssh_client=use_ssh_client, 101 **kwargs_from_env(**kwargs) 102 ) File ~/mambaforge/envs/ewatercycle/lib/python3.10/site-packages/docker/client.py:45, in DockerClient.__init__(self, *args, **kwargs) 44 def __init__(self, *args, **kwargs): ---> 45 self.api = APIClient(*args, **kwargs) File ~/mambaforge/envs/ewatercycle/lib/python3.10/site-packages/docker/api/client.py:197, in APIClient.__init__(self, base_url, version, timeout, tls, user_agent, num_pools, credstore_env, use_ssh_client, max_pool_size) 192 # version detection needs to be after unix adapter mounting 193 if version is None or (isinstance( 194 version, 195 str 196 ) and version.lower() == 'auto'): --> 197 self._version = self._retrieve_server_version() 198 else: 199 self._version = version File ~/mambaforge/envs/ewatercycle/lib/python3.10/site-packages/docker/api/client.py:221, in APIClient._retrieve_server_version(self) 216 raise DockerException( 217 'Invalid response from docker daemon: key "ApiVersion"' 218 ' is missing.' 219 ) 220 except Exception as e: --> 221 raise DockerException( 222 f'Error while fetching server API version: {e}' 223 ) DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
I haven't looked much into it, but if there's no clear way around it, than perhaps podman-py could be an option
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Podman is an alternative to docker. It's used as
alias docker=podman
.However, this is incompatible with grpc4bmi. In grpc4bmi, we used the docker python library like so:
This fails with
I haven't looked much into it, but if there's no clear way around it, than perhaps podman-py could be an option
The text was updated successfully, but these errors were encountered: