-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Issue Description
I'm using podman quadlet install --replace and rm commands.
Is it really intended, that with every '--replace' command the 'application' file (here: .lara.app) is appended to?
Like, if you do this several times with the same quadlet files, a podman quadlet rm .lara.app gives this output:
podman quadlet rm .lara.app
lara-api.container
lara-proxy.container
lara-api.container
lara-proxy.container
lara-api.container
lara-proxy.container
lara-api.container
lara-proxy.container
lara-api.container
lara-proxy.container
lara-api.container
lara-proxy.container
lara-api.container
lara-proxy.container
lara-api.container
lara-proxy.container
lara-api.container
lara-proxy.container
lara-api.container
...etc...
Moreover, my expectation of the install --replace command is, that the installed quadlet files will be overwritten completely in ~/.config/containers/systemd, but this is not the case:
Example:
/storage/lara/lara/lara-api.container is:
[Unit]
PartOf=lara.target
[Container]
ContainerName=lara-api
HostName=lara-api.sws.internal
Image=harbor.sws.internal:8453/lara/app/api:latest
Volume=/storage/lara/config/ssl/lara-api.sws.internal.crt:/app/ssl/certificate.crt:z,U
Volume=/storage/lara/config/ssl/lara-api.sws.internal.key:/app/ssl/certificate.key:z,U
PublishPort=44363:44363
Pull=newer
Network=lara
[Service]
Restart=always
Do a podman quadlet install --replace /storage/lara/lara
This is fine the first time.
Now, edit ~/.config/containers/systemd and add at the end of the service-section:
[Service]
Restart=always
a=b
Do another podman quadlet install --replace /storage/lara/lara (without rm first!)
and... the a=b is still there?
If this is not reliable (or, i misunderstood the purpose) i'm back to copying quadlet-files by hand into ~/.config.
Am i missing something?
Steps to reproduce the issue
Steps to reproduce the issue
see description
Describe the results you received
see description
Describe the results you expected
- the app-file '.lara.app' must not have multiple entries of the same app-parts.
- a
--replacecommand should really replace the files in ~/.config/containers/systemd`, not only parts of them
podman info output
podman info
host:
arch: amd64
buildahVersion: 1.42.2
cgroupControllers:
- cpu
- memory
- pids
cgroupManager: systemd
cgroupVersion: v2
conmon:
package: conmon-2.1.13-1.fc42.x86_64
path: /usr/bin/conmon
version: 'conmon version 2.1.13, commit: '
cpuUtilization:
idlePercent: 98.67
systemPercent: 0.42
userPercent: 0.91
cpus: 4
databaseBackend: sqlite
distribution:
distribution: fedora
variant: cloud
version: "42"
emulatedArchitectures:
- linux/arm
- linux/arm64
- linux/arm64be
- linux/loong64
- linux/mips
- linux/mips64
- linux/ppc
- linux/ppc64
- linux/ppc64le
- linux/riscv32
- linux/riscv64
- linux/s390x
eventLogger: journald
freeLocks: 2046
hostname: AZ-CBC-VM-GammaSwat
idMappings:
gidmap:
- container_id: 0
host_id: 10070
size: 1
- container_id: 1
host_id: 2031616
size: 65536
uidmap:
- container_id: 0
host_id: 10070
size: 1
- container_id: 1
host_id: 2031616
size: 65536
kernel: 6.17.13-200.fc42.x86_64
linkmode: dynamic
logDriver: journald
memFree: 836608000
memTotal: 16749846528
networkBackend: netavark
networkBackendInfo:
backend: netavark
dns:
package: aardvark-dns-1.17.0-1.fc42.x86_64
path: /usr/libexec/podman/aardvark-dns
version: aardvark-dns 1.17.0
package: netavark-1.17.1-1.fc42.x86_64
path: /usr/libexec/podman/netavark
version: netavark 1.17.1
ociRuntime:
name: crun
package: crun-1.26-1.fc42.x86_64
path: /usr/bin/crun
version: |-
crun version 1.26
commit: 3241e671f92c33b0c003cd7de319e4f32add6231
rundir: /run/user/10070/crun
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJL
os: linux
pasta:
executable: /usr/bin/pasta
package: passt-0^20251223.g2ba9fd5-1.fc42.x86_64
version: |
pasta 0^20251223.g2ba9fd5-1.fc42.x86_64
Copyright Red Hat
GNU General Public License, version 2 or later
<https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
remoteSocket:
exists: true
path: /run/user/10070/podman/podman.sock
rootlessNetworkCmd: pasta
security:
apparmorEnabled: false
capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
rootless: true
seccompEnabled: true
seccompProfilePath: /usr/share/containers/seccomp.json
selinuxEnabled: true
serviceIsRemote: false
slirp4netns:
executable: ""
package: ""
version: ""
swapFree: 820527104
swapTotal: 8589930496
uptime: 614h 55m 40.00s (Approximately 25.58 days)
variant: ""
plugins:
authorization: null
log:
- k8s-file
- none
- passthrough
- journald
network:
- bridge
- macvlan
- ipvlan
volume:
- local
registries:
alpha:5001:
Blocked: false
Insecure: true
Location: alpha:5001
MirrorByDigestOnly: false
Mirrors: null
Prefix: alpha:5001
PullFromMirror: ""
search:
- registry.fedoraproject.org
- registry.access.redhat.com
- docker.io
store:
configFile: /home/lara/.config/containers/storage.conf
containerStore:
number: 2
paused: 0
running: 2
stopped: 0
graphDriverName: overlay
graphOptions: {}
graphRoot: /home/lara/.local/share/containers/storage
graphRootAllocated: 549755813888
graphRootUsed: 88772018176
graphStatus:
Backing Filesystem: btrfs
Native Overlay Diff: "true"
Supports d_type: "true"
Supports shifting: "false"
Supports volatile: "true"
Using metacopy: "false"
imageCopyTmpDir: /var/tmp
imageStore:
number: 6
runRoot: /run/user/10070/containers
transientStore: false
volumePath: /home/lara/.local/share/containers/storage/volumes
version:
APIVersion: 5.7.1
BuildOrigin: Fedora Project
Built: 1765324800
BuiltTime: Wed Dec 10 01:00:00 2025
GitCommit: f845d14e941889ba4c071f35233d09b29d363c75
GoVersion: go1.24.10
Os: linux
OsArch: linux/amd64
Version: 5.7.1Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting