Prevent duplicate containers when using createContainer()