Closed alejones closed 5 months ago
Thanks for the detailed write-up! This particular error is fixed by #73. However, you will still get an error as deploy
is not supported by podlet. deploy
is meant for use by Docker Swarm and other production deployments that use Compose. I believe docker compose up
will silently ignore the deploy
section of a service. I decided that podlet would be up front about what it doesn't support instead of silently ignoring things. That way the user can decide how to handle it, for example, by commenting out the offending section and possibly replacing it with something else that gets the behavior they want.
Thanks for the quick response! I'll try commenting out the deploy section.
Do you know if there is anything else I need to do to get the gpu working?
Do you know if there is anything else I need to do to get the gpu working?
I've never tried to use a GPU in a container before. I imagine you need to mount the device into the container, see podman run --device
and the devices
section of service compose-spec. You should ask for help from the people who created the image/software.
I just learned about podman run --gpus
, added in Podman v5.0.0. So you could add PodmanArgs=--gpus all
to the generated .container
quadlet file.
Awesome, thank you for finding that!
Current Behavior:
I'm trying to convert a docker compose file provided by Label Studio ML backend into quadlets. I can get it to work when using
podman-compose up
, but it fails when runningpodlet compose docker-compose.yml
.Expected Behavior:
I'd like to get one or more .continer files that allow me to use systemd to start up everything in the compose file.
Steps To Reproduce:
I've downloaded and decompressed podlet from the latest release
You can find the docker compose file I'm running here: https://github.com/HumanSignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/grounding_dino/docker-compose.yml
I've updated it so it looks like this:
In Ubuntu server 24.04 I'm running this command:
And getting this result
Versions:
podman version: 4.9.3 Podlet verstion: 0.2.4 - 2024-01-30 OS: Ubuntu Server 24.04
Anything else:
I've used Podlet to create a service file from a podman run command. This is the first time I'm trying to convert a docker-compose file.