Metal vapor confinement in vacuum