Skip to content

Quadlet definition files of network & volume are not detected from user directory? #26323

Answered by ygalblum
a7md0 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

I'm not sure which Podman version you are using, but the support for translating dependencies set in the Unit section was only added in v5.5.X.

Having said that, in your case, the correct way is changing the names of the network and volume in the .container unit to the corresponding .network and .volume units. Once set, Quadlet will handle the translation and adding the dependencies.

So, the .container should be:

# ~/.config/containers/systemd/backend-app.container
[Unit]
Description=My Backend Application Container
Requires=backend-app.network backend-app.volume
After=network-pre.target

[Container]
ContainerName=backend-app
Image=docker.io/a7md0/myapp:latest

PublishPort=8080:80/tcp…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by a7md0
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants