copy name to local variable for new-container