Podman-compose with systemd #786
-
Hello, I want to run my podman-compose as a background service (so it doesn't stop when user ends the session).
I have created a services:
vpn:
image: docker.io/qmcgaw/gluetun:latest
...
nginx:
image: docker.io/nginx:mainline-alpine3.18-slim
container_name: nginx
...
qbittorrent:
container_name: qbittorrent
image: lscr.io/linuxserver/qbittorrent:latest
...
radarr:
container_name: radarr
image: lscr.io/linuxserver/radarr:latest
...
# Show collection manager
sonarr:
image: lscr.io/linuxserver/sonarr:latest
container_name: sonarr
...
prowlarr:
container_name: prowlarr
image: lscr.io/linuxserver/prowlarr:latest
...
jellyfin:
image: lscr.io/linuxserver/jellyfin:latest
container_name: jellyfin
...
networks:
media_network:
external: true So I have read the solution is to use
With the following output: × podman-compose@media_server.service - media_server rootless pod (podman-compose)
Loaded: loaded (/etc/xdg/systemd/user/podman-compose@.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Fri 2023-09-29 12:21:55 CEST; 1min 51s ago
Process: 95113 ExecStartPre=/home/dionysus/.local/bin/podman-compose up --no-start (code=exited, status=0/SUCCESS)
Process: 95250 ExecStartPre=/usr/bin/podman pod start pod_media_server (code=exited, status=125)
CPU: 687ms
Sep 29 12:21:53 media podman-compose[95235]: Error: creating container storage: the container name "qbittorrent" is already in use by 784f25ce9debc9703d668502da4489f46f2a905d1d2124ca52c86126a5c553b1. You have to remove that container to be able to reuse that name: that name is already in use
Sep 29 12:21:53 media podman-compose[95113]: exit code: 125
Sep 29 12:21:54 media podman-compose[95113]: podman create --name=prowlarr --requires=media_server_vpn_1 --label io.podman.compose.config-hash=cec061e76a20279521530080241799bbe403c095780cc9c3b64bc12b3ffcb705 --label io.podman.compose.project=media_server --label io.podman.compose.version=1.0.6 --label PODMAN_SYSTEMD_UNIT=podman-compose@media_server.service --label com.docker.compose.project=media_server --label com.docker.compose.project.working_dir=/home/dionysus/media_server --label com.docker.compose.project.config_files=compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=prowlarr -e PUID=1000 -e PGID=1000 -e TZ=Europe/Ljubljana -v /home/dionysus/media_server/prowlarr/config:/config:Z --network container:media_server_vpn_1 --restart unless-stopped lscr.io/linuxserver/prowlarr:latest
Sep 29 12:21:54 media podman-compose[95242]: Error: creating container storage: the container name "prowlarr" is already in use by 15de6b03803273c2b9a6251666fb006aa66ba583bab517d1655fadb6673dd64a. You have to remove that container to be able to reuse that name: that name is already in use
Sep 29 12:21:54 media podman[95242]: 2023-09-29 12:21:54.723650656 +0200 CEST m=+0.024963738 image pull lscr.io/linuxserver/prowlarr:latest
Sep 29 12:21:54 media podman-compose[95113]: exit code: 125
Sep 29 12:21:55 media podman[95250]: Error: no pod with name or ID pod_media_server found: no such pod
Sep 29 12:21:55 media systemd[73585]: podman-compose@media_server.service: Control process exited, code=exited, status=125/n/a
Sep 29 12:21:55 media systemd[73585]: podman-compose@media_server.service: Failed with result 'exit-code'.
Sep 29 12:21:55 media systemd[73585]: Failed to start media_server rootless pod (podman-compose). I am just wondering what am I doing wrong and if there is any documentation for this? |
Beta Was this translation helpful? Give feedback.
Answered by
lister1308
Apr 17, 2024
Replies: 1 comment
-
I used the solution mentioned in https://www.it-hure.de/2024/02/podman-compose-and-systemd/ and that worked |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bl4ko
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I used the solution mentioned in https://www.it-hure.de/2024/02/podman-compose-and-systemd/ and that worked