podman-pod-restart(1)

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

✨ podman-pod-restart ✨

okay bestie, welcome to the manual page for podman-pod-restart(1) β€” it lives in the General Commands Manual section and honestly? it's giving glow-up energy for your pods. πŸ’…


🌸 NAME 🌸

podman-pod-restart β€” restart one or more pods 🫢


πŸŽ€ SYNOPSIS πŸŽ€

podman pod restart [options] pod ...

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea β˜• β€” this command restarts the containers inside one or more pods. Let's break it down:

  • Containers that are running? They get stopped and restarted. πŸ”„
  • Containers that are stopped? They get started. ✨

You can pass in pod IDs or pod names as input, whichever you vibe with. And when a restart works out, the pod ID gets printed β€” like a little receipt, but make it iconic. 🧾

Now here's the part that's lowkey a relief: when you're restarting multiple pods, if one pod throws an error, that error does not affect the restarting of the other pods. Each pod is doing its own thing, main character style. πŸ‘‘


πŸ’– OPTIONS πŸ’–

  • --all, -a β€” restarts all pods. every single one. the whole squad. πŸ«‚
  • --latest, -l β€” instead of handing over a pod name or ID, this just restarts the last created pod. the freshest one. the baby of the family. 🍼
⚠️ heads up bestie: --latest, -l is not available with the remote Podman client, and that includes Mac and Windows machines (excluding WSL2). so if you're on one of those, this flag is not invited to the party. πŸ™ˆ

⭐ EXAMPLE ⭐

Restart a pod with a given name:

podman pod restart mywebserverpod
cc8f0bea67b1a1a11aec1ecd38102a1be4b145577f21fc843c7c83b77fc28907

Restart multiple pods with given IDs:

podman pod restart 490eb 3557fb
490eb241aaf704d4dd2629904410fe4aa31965d9310a735f8755267f4ded1de5
3557fbea6ad61569de0506fe037479bd9896603c31d3069a6677f23833916fab

Restart the last created pod:

podman pod restart --latest
3557fbea6ad61569de0506fe037479bd9896603c31d3069a6677f23833916fab

Restart all pods:

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

look at all those IDs printing out 😭 so satisfying fr fr.


🌈 SEE ALSO 🌈

podman(1), podman-pod(1), podman-restart(1)

go read those too, they're all part of the same friend group πŸ’œ


πŸ“œ HISTORY πŸ“œ

July 2018 β€” originally compiled by Peter Hunt pehunt@redhat.com ⟨mailto:pehunt@redhat.com⟩


aaaand that's the whole page, bestie!! πŸŽ€ this was podman-pod-restart(1) from the General Commands Manual, compiled back in July 2018 by Peter Hunt, and you just read the whole thing. so proud of you. go restart a pod, you've got this. πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from