GoogleCloudPlatform / composer-local-dev

Apache License 2.0
75 stars 40 forks source link

Add Podman support #56

Open peon-pasado-zeitnot opened 6 months ago

peon-pasado-zeitnot commented 6 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 5 months ago

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

peon-pasado-zeitnot commented 5 months ago

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

sakkammadam commented 4 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 4 months ago

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

Spince commented 1 month ago

@rishi-aga can you elaborate? i have the DOCKER_HOST env var set and it works when i use the astro cli to run airflow locally but not when trying to run composer locally. my error is similar but doesn't like the url scheme Error: Error while fetching server API version: Not │ │ supported URL scheme http+docker