-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Running docker-compose with podman as a backend on MacOS is failing #13069
Comments
EDIT -- sorry this probably won't work 😞 @mikegit21 you need to set
Also you need to add podman machine key to
I recommend using rootful socket:
and put the server key to known hosts file.
Note this complicated set up might not be needed in future. @n1hility is working on auto exposure of socket so it would work automatically. |
hmm this ^^^ might not work actually: |
more info: |
Does this mean I could upgrade to this version and it should be working? Is it a stable one? When running it with my current podman version I get:
When removing the ssh part I again get:
|
When trying to do this I am getting: |
@mikegit21 you must adjust the port number, it's auto-generated and it will be different on your machine. |
How do I see which port my podman machine is running on? Is it |
podman system connection ls |
This did actually work, thank you a lot! |
I have the same issue. I did using the next steps
ENV: MacOS Monterey 12.1 |
@tuxoff try this #11397 (comment) (adjust the port there) |
@matejvasek It works, thanks, will continue my testing. |
I tried the approach above including this:
and I'm getting the error: During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Running docker-compose with podman as a backend on MacOS is failing
Steps to reproduce the issue:
Install podman using brew:
brew install podman
Initialize the podman machine:
podman machine init
Started the machine:
podman machine start
Installed docker-compose:
Describe the results you received:
docker-compose cannot fetch the API version of the docker backend (in this case podman) or is somehow blocked:
I tried running the command with sudo in case there are any entitlement problems, but this didn't fix the problem.
Describe the results you expected:
I would expect docker-compose to perform the up command as it would be when running docker as a backend.
Additional information you deem important (e.g. issue happens only occasionally):
I created a symlink for podman (ln -s podman docker), so running docker version gives me the same and I can actually run containers using docker run even though docker is not installed.
docker compose version:
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):brew info podman
Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
**Additional environment details (AWS, VirtualBox, physical, etc.):
MacOS Montery 12.1
The text was updated successfully, but these errors were encountered: