Skip to content
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

Compose does not work with a rootless podman machine on windows #3560

Closed
odockal opened this issue Aug 16, 2023 · 10 comments
Closed

Compose does not work with a rootless podman machine on windows #3560

odockal opened this issue Aug 16, 2023 · 10 comments

Comments

@odockal
Copy link
Contributor

odockal commented Aug 16, 2023

Bug description

I am trying to use a compose installed through a Podman Desktop to spin up flask compose example 1. I am also having a default podman machine installed on laptop via podman desktop. This machine is rootless. On a cli, I run docker-compose.exe up -d in a flask folder and get: Error response from daemon: crun: creating cgroup directory /sys/fs/cgroup/misc/docker/buildx/libpod-e8e918dd83ea5605e3b70e5c37ccd65262eb0534377fb56d8ca29d02058f3dd9: No such file or directory: OCI runtime attempted to invoke a command that was not found

Operating system

Windows 10

Installation Method

Installer from website/GitHub releases

Version

next (development version)

Steps to reproduce

  1. Checkout awesome-compose repo
  2. Install podman desktop (1.3.0-next), install podman 4.6.1.
  3. Initialize and start podman machine (podman-machine-default - gonna be rootless)
  4. Install compose via download button (2.20.3)
  5. Set it to be installed system wide
  6. Open Cli and check availability of docker-compose.exe on a PATH
  7. checkout to a folder with flask sample
  8. Run DOCKER_HOST=npipe:////./pipe/podman-machine-default docker-compose.exe up -d
  9. Assert: flask container are spin up correctly.
    Actual result:
Error response from daemon: crun: creating cgroup directory `/sys/fs/cgroup/misc/docker/buildx/libpod-e8e918dd83ea5605e3b70e5c37ccd65262eb0534377fb56d8ca29d02058f3dd9`: No such file or directory: OCI runtime attempted to invoke a command that was not found

Relevant log output

$ DOCKER_HOST=npipe:////./pipe/podman-machine-default docker-compose.exe up -d
#0 building with "default" instance using docker-container driver

#1 [web internal] booting buildkit
#1 starting container buildx_buildkit_default
#1 starting container buildx_buildkit_default 0.6s done
#1 ERROR: Error response from daemon: crun: creating cgroup directory `/sys/fs/cgroup/misc/docker/buildx/libpod-e8e918dd83ea5605e3b70e5c37ccd65262eb0534377fb56d8ca29d02058f3dd9`: No such file or directory: OCI runtime attempted to invoke a command that was not found
------
 > [web internal] booting buildkit:
------
Error response from daemon: crun: creating cgroup directory `/sys/fs/cgroup/misc/docker/buildx/libpod-e8e918dd83ea5605e3b70e5c37ccd65262eb0534377fb56d8ca29d02058f3dd9`: No such file or directory: OCI runtime attempted to invoke a command that was not found

Additional context

This is a sub issue for a #3535 which should help identify core problems with a compose. Could be upstream issue.

@cdrage
Copy link
Contributor

cdrage commented Aug 21, 2023

On the new machine, were you able to reproduce this issue @odockal ?

I see that containers/podman#17042 was created, but want to confirm 100% if it's our end (PD) or not

@cdrage cdrage removed their assignment Aug 28, 2023
@cdrage
Copy link
Contributor

cdrage commented Aug 28, 2023

Closing this for now as I've just tried again and was unable to reproduce it.

I followed the same steps, but instead of getting: Error response from daemon: crun: creating cgroup directory /sys/fs/cgroup/misc/docker/buildx/libpod-e8e918dd83ea5605e3b70e5c37ccd65262eb0534377fb56d8ca29d02058f3dd9: No such file or directory: OCI runtime attempted to invoke a command that was not found

I was able to successfully bring up the flask application.

Let me know if this is still an issue and we'll re-open it!

@cdrage cdrage closed this as completed Aug 28, 2023
@cdrage cdrage self-assigned this Aug 28, 2023
@BjoernAkAManf
Copy link

Still running into this issue.
However this only occurs if podman requires to build.

This does not work:

docker-compose.yml

services:
#  alpine:
#    image: alpine:latest
  poc:
    build:
      context: poc
      args:
        VERSION_ALPINE: '3.18'

nginx/Dockerfile

ARG VERSION_ALPINE=latest
FROM alpine:${VERSION_ALPINE} as builder

This however does work:

services:
  alpine:
    image: alpine:latest
#  poc:
#    build:
#      context: poc
#      args:
#        VERSION_ALPINE: '3.18'

Building the Dockerfile also works:

podman build poc

Unsure if this is a Desktop issue, but i'd assume this is the same issue as above.

@krisdante
Copy link

I have the same on WIndows

@jeffmaury
Copy link
Contributor

The command to use is podman compose up -d and not docker-compose up -d as buildkit is not supported.

@yunnysunny
Copy link

I have the same on WIndows

+1

@joaoopereira
Copy link

I had the same issue today, but after running podman machine set --rootful solved the issue

@SohanTirpude
Copy link

I had the same issue today, but after running podman machine set --rootful solved the issue

@joaoopereira, I tried your way but still I am seeing the same issue for celery. This is the exact error:

Error: unable to start container "c2e86e1945532d0cec3a3379582b4f30bea43d790462d3277f79f1d6e2587244": crun: executable file `celery` not found in $PATH: No such file or directory: OCI runtime attempted to invoke a command that was not found
exit code: 125

@joaoopereira
Copy link

@SohanTirpude what are you trying to run?

@SohanTirpude
Copy link

@joaoopereira please ignore. I managed to solve somehow but I don't remember now. Thanks anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

8 participants