I'll give it a try, if Dan or Matt say differently, go with them.

`podman pause` pauses the processes in the container and puts the container into the "Paused" state.  You can kind of think of it as a flash freeze of the container.  The `podman unpause` command unpauses the container and let's the processes continue running from the point they were at when they were paused.

`podman stop` is a bigger hammer.  It kills all the processes within the container and puts the container into the "Exited" state.  The container can be restarted with `podman start` and all the processes in the container will have to restart from scratch.

t

On 1/26/20 1:33 PM, Robert P. J. Day wrote:
  first, what is the difference between "podman pause" and "podman
stop", particularly since "man podman-pause" seems to confuse the two:

  OPTIONS
       --all, -a

       Pause all running containers.

  EXAMPLE

  ... snip ...
       Pause all running containers.

              podman stop -a
                     ^^^^

so anyone reading "man podman-pause" is going to think that "stop" is
a synonym, at least reading that example.

  in addition, "man podman-stop" doesn't help the situation by not
distinguishing between paused and stopped containers:

  OPTIONS
       --all, -a

       Stop all running containers.  This does not include paused con‐
       tainers.

second issue:

  $ podman pause musing_knuth
  Error: pause is not supported for rootless containers
  $

even if this is true, there is nothing in "man podman-pause" to
suggest that this might occur, which is definitely grounds for
confusion.

rday

_______________________________________________
Podman mailing list -- podman@lists.podman.io
To unsubscribe send an email to podman-leave@lists.podman.io