GoogleCloudPlatform / composer-local-dev

Apache License 2.0
75 stars 38 forks source link

Add Podman support #56

Open peon-pasado-zeitnot opened 4 months ago

peon-pasado-zeitnot commented 4 months ago

I have following error on Mac with Podman Desktop enabled (with docker compatibility enabled, I even tried enabling docker cli emulation, but it didn't help):

composer-dev create --from-image-version composer-2.8.0-airflow-2.7.3 example-local-environment
No dags directory provided, using default dags directory.
╭─ Error ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Docker not available or failed to start. Please ensure docker service is installed and running. Error: Error while fetching    │
│ server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))                                 │
│                                                                                                                                │
│ To print debug messages please add --debug flag.                                                                               │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
nbonnotte commented 4 months ago

@peon-pasado-zeitnot Are you sure your issue is related to podman and not to #55?

peon-pasado-zeitnot commented 3 months ago

@nbonnotte how can I verify it? Should I assume that Podman is allredy supported?

sakkammadam commented 2 months ago

No, I don't believe Podman is not natively supported at the moment.

def get_client(self):
        try:
            return docker.from_env()
        except docker.errors.DockerException as err:
            logging.debug("Docker not found.", exc_info=True)
            raise errors.DockerNotAvailableError(err) from None

I was also trying to use Podman to spin up a local composer environment when I ran into this issue.

rishi-aga commented 2 months ago

do you have DOCKER_HOST environment variable pointing to podman sock file? It works with that