podman-pod-stop(1)

πŸ“¦
version 6.1.4 Β· 5 versions
, in arch rolling, fedora 43, fedora 44, ubuntu resolute

πŸ’… podman-pod-stop(1) β€” bestie, it's time to say bye to your pods

okay so this is a page from the General Commands Manual β€” it's the podman-pod-stop(1) situation, and we are stopping pods. let's get into it πŸŽ€


✨ NAME ✨

podman-pod-stop β€” stop one or more pods πŸ›‘


πŸ¦‹ SYNOPSIS πŸ¦‹

podman pod stop [options] pod ...

🌸 DESCRIPTION 🌸

So what we're doing here is stopping the containers inside one or more pods. that's the whole vibe. πŸ’–

You can hand over pod IDs or pod names as your input β€” either one works, she's flexible like that. iykyk.


πŸ‘‘ OPTIONS πŸ‘‘

  • --all, -a β€” stops all the pods. every single one. no survivors (affectionately) πŸ’€
  • --ignore, -i β€” ignore errors when the pods you named are not in the container store. why does this exist? because sometimes a user just manually removes a pod, and then the ExecStop directive of a systemd service that references that pod goes and fails. rude. so this flag is like "bestie, it's fine, let it go" πŸ™ˆ
  • --latest, -l β€” instead of giving a pod name or ID, just use the last created pod. periodt. ⚠️ note: the last started pod can be from other users of Podman on the host machine, so lowkey check yourself before you wreck yourself. also: this option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines. 🫢
  • --pod-id-file=file β€” read the pod ID from the file you specify and stop that pod. can be specified multiple times, so stack 'em up like stickers on a laptop. ✨
  • --time, -t=seconds β€” how many seconds to wait before forcibly stopping the running containers within the pod. use -1 for an infinite wait. the drama of it all 😭

πŸ“ EXAMPLE πŸ“

stop a pod with a given name. iconic.

$ podman pod stop mywebserverpod
cc8f0bea67b1a1a11aec1ecd38102a1be4b145577f21fc843c7c83b77fc28907

stop multiple pods with given IDs. multitasking queen πŸ’…

$ podman pod stop 490eb 3557fb
490eb241aaf704d4dd2629904410fe4aa31965d9310a735f8755267f4ded1de5
3557fbea6ad61569de0506fe037479bd9896603c31d3069a6677f23833916fab

stop the last created pod. (again for the people in the back: this option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines) πŸ“£

$ podman pod stop --latest
3557fbea6ad61569de0506fe037479bd9896603c31d3069a6677f23833916fab

stop all pods. everybody go home 🏠

$ podman pod stop --all
19456b4cd557eaf9629825113a552681a6013f8c8cad258e36ab825ef536e818
3557fbea6ad61569de0506fe037479bd9896603c31d3069a6677f23833916fab
490eb241aaf704d4dd2629904410fe4aa31965d9310a735f8755267f4ded1de5
70c358daecf71ef9be8f62404f926080ca0133277ef7ce4f6aa2d5af6bb2d3e9
cc8f0bea67b1a1a11aec1ecd38102a1be4b145577f21fc843c7c83b77fc28907

stop two pods via --pod-id-file. two birds, one beautifully typed command πŸ¦‹

$ podman pod stop --pod-id-file file1 --pod-id-file file2
19456b4cd557eaf9629825113a552681a6013f8c8cad258e36ab825ef536e818
cc8f0bea67b1a1a11aec1ecd38102a1be4b145577f21fc843c7c83b77fc28907

stop all pods with a timeout of 1 second. no time wasted, main character energy ⏱️

$ podman pod stop -a -t 1
3557fbea6ad61569de0506fe037479bd9896603c31d3069a6677f23833916fab
490eb241aaf704d4dd2629904410fe4aa31965d9310a735f8755267f4ded1de5
70c358daecf71ef9be8f62404f926080ca0133277ef7ce4f6aa2d5af6bb2d3e9

🌈 SEE ALSO 🌈

podman(1), podman-pod(1), podman-pod-start(1) β€” go read your siblings, they're also slaying πŸ’œ


πŸ“œ HISTORY πŸ“œ

July 2018, originally compiled by Peter Hunt pehunt@redhat.com ⟨mailto:pehunt@redhat.com⟩ β€” thank you Peter, we owe you one 🫢✨


and that's the whole page, bestie!! this was podman-pod-stop(1) from the General Commands Manual β€” go stop some pods, stay hydrated, and remember: pods come and go but the manpage stays forever πŸ’–πŸŽ€ no cap.

πŸ“¦ where this page comes from