Validate container names on creation. Fixes #3138