docker: extract serialize and restart logic to a func.
action: added a mutext for action.Result.
docker: running start in background.