it looks too difficult to understand. how about the follow:
docker images | grep -wq "$container_name" || { [ "$action" == "reboot" ] || { [ -x build ] && ./build [ -x install ] && ./install } }
ok, but if we can get all images names, just grep docker images names, not exist ->./build exist -> skip ./build delete "action" == "reboot",
but some images name is not same with container_name, like scheduler, docker images name is sch-ruby-a:v0.00d-#{SCHED_PORT}, would you have any idea?
Thanks, Yinsi
Thanks Yu Chuan
-- 2.23.0