When Is a Container a Comonad?