Workaround docker attach race condition