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 compatibility #7
Comments
Can someone with podman experience please answer if docker and podman are mostly a API-compliant? Would it be sufficent to make the name of the socket in |
podman has a rest api that is compatible with docker. you can read more about it here. However it also has a large amount of podman specific endpoints which are more powerful |
Could you please test it? I made a PR, which worked for me. |
I'll test it out now |
could you explain how to set it up with podman. It just isn't working for me |
Please test two cases:
You have to be on the |
I keep getting the following error from podman volume inspect abs_cd_local-repo || podman volume create abs_cd_local-repo
Traceback (most recent call last):
File "/usr/bin/podman-compose", line 33, in <module>
sys.exit(load_entry_point('podman-compose==0.1.5', 'console_scripts', 'podman-compose')())
File "/usr/lib/python3.9/site-packages/podman_compose.py", line 1093, in main
podman_compose.run()
File "/usr/lib/python3.9/site-packages/podman_compose.py", line 625, in run
cmd(self, args)
File "/usr/lib/python3.9/site-packages/podman_compose.py", line 782, in wrapped
return func(*args, **kw)
File "/usr/lib/python3.9/site-packages/podman_compose.py", line 897, in compose_up
podman_args = container_to_args(compose, cnt,
File "/usr/lib/python3.9/site-packages/podman_compose.py", line 457, in container_to_args
mount_args = mount_desc_to_args(compose, volume, cnt['_service'], cnt['name'])
File "/usr/lib/python3.9/site-packages/podman_compose.py", line 386, in mount_desc_to_args
mount_desc = mount_dict_vol_to_bind(compose, fix_mount_dict(mount_desc, proj_name, srv_name))
File "/usr/lib/python3.9/site-packages/podman_compose.py", line 366, in mount_dict_vol_to_bind
src = json.loads(out)[0]["mountPoint"]
KeyError: 'mountPoint' |
That's because doesn't support standalone volumes. containers/podman-compose#13 I now tested this on podman, changed a bit more and got some network issue:
Would be nice if someone with more podman experience could help me please, podman feels very alpha overall not like a 2.0 program. |
after installing the devel version of podman-compose I now get a permissions error as a unprivileged user should not be able to access /var/run or /srv/ however the api can run as a user service which is in $XDG_RUNTIME_DIR/podman/podman.sock . The issue now is volumes can not have / in them |
changing the paths too local ones in the compose file and using $XDG_RUNTIME_DIR/podman/podman.sock instead of /var/run it works! this is my compose file. version: '3.4'
services:
abs_cd:
image: abs_cd
build:
context: .
dockerfile: Dockerfile
restart: on-failure:3
ports:
- '8000:8000'
volumes:
- '/run/user/1000/podman/podman.sock:/var/run/docker.sock'
- 'data:/opt/abs_cd/data'
- 'srv:/opt/abs_cd/staticfiles'
- 'local-repo:/repo'
- 'packages:/var/packages'
volumes:
local-repo: |
So building worked for you, too? |
sorry I took so long to respond I have been traveling. Yes building worked |
Nice! then I'll put your docker-compose.yml in a gist and link it in the podman section. Thx!. |
no problem |
Is this project compatible with podman rootless docker? It would be a lot safer for aur maintenaners if this could use podman
The text was updated successfully, but these errors were encountered: