-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
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 support #727
Comments
Could you try if installing podman-compose fixes it? |
I already have |
Would you mind testing one of the artifacts from here? (scroll to the bottom) |
|
Apologies for the late response. It is unfortunate that |
I believe Podman officially supports |
Installing docker-compose doesn't solve the issue because it is already deprecated by docker. The need here is to launch nhost containers locally using podman - so |
The problem is that |
May I know what argument was use in your test above for podman-compose? According to this article, podman-compose is compatible with docker-compose.yml without any change.
|
I think the issue is that the Docker command |
Correct, it was just a dummy change to see if it would work. You can see it here + the needed arguments here: |
Thanks both for clarifying. It's an issue with the According to this docker compose cli reference, that parameter is for specific case where multiple docker-compose.yml files that reside is different directories. In my understanding, nhost generate only a single docker-compose.yml file inside .nhost sub-directory. My suggestion on how to make it work for podman-compose: Use $ docker version
Client: Podman Engine
Version: 4.5.1
API Version: 4.5.1
Go Version: go1.18.10
Built: Thu Jan 1 00:00:00 1970
OS/Arch: linux/amd64
Server: Podman Engine
Version: 4.5.0
API Version: 4.5.0
Go Version: go1.19.7
Built: Fri Apr 14 15:42:56 2023
OS/Arch: linux/amd64
# or alternatively use `which podman-compose` to check if it's installed.
$ which podman-compose
/usr/local/bin/podman-compose
# Result of nhost up for docker compose
docker compose up -f ~/.nhost/docker-compose.yml
# Result of nhost up for podman
podman-compose up -f ~/.nhost/docker-compose.yml |
Removing
Notice |
I'm just trying out nhost CLI with Podman to see if I can get it to fly. From what I observed,
I can set $ export DOCKER_HOST=unix://run/user/1000/podman/podman.sock
$ docker-compose --project-directory /path/to/nhost/project -f .nhost/docker-compose.yaml -p nhost-project-name up -d There's a request for support of |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
#139 was closed with a comment saying that CLI 1.x now works with podman, but it does not appear to be true. I get the following output when running
nhost up
:As I understand it, podman itself can work with
docker-compose
, but it appears that the CLI is running thedocker compose ...
command rather thandocker-compose
. That means it gets passed to podman viapodman-docker
, and thecompose
command is not supported by podman:Indeed, if I run
docker compose --project-directory ...
I get the same output as the CLI, which seems to confirm the cause of the error duringnhost up
:The text was updated successfully, but these errors were encountered: