Handle curl content-type for container creation

Fixes #2515