Refactor dockerui.go