WWindmill•Created by badsequel on 2/23/2024 in #help Delay in catching docker exit code in bash script
Nevermind.. The docker metadata is obviously set AFTER the container is finished executing its main process and shut down.
Adding a sleep after docker run, or better yet using "docker wait "$containerid" is the trick