Contaner RESTART

Is there any command to restart a container? (other than stop and then start)

Nope. And it’s annoying you cannot “restart” them easily.

The stop and start operations are asynchronous… So you have to check the status to see when it “stopped” BEFORE hitting the “start” – otherwise the start is ignored if it’s in a “stopping” (or “running”) state. If your scripting, this means you need to have loop that check status for “stopped” then issues a the start cmd.

As Amm0 wrote, you need to track container status before starting, here is a simple start/restart script for that:

/container
:local stopStatus "stopped"
:local container [find comment="<CONTAINER_NAME>"]
:if ([get $container status] != $stopStatus) do={
  stop $container
  :while ([get $container status] != $stopStatus) do={
    :delay 0.5
  }
}
start $container

set to your container comment with something and replace in script <CONTAINER_NAME> with that.