Improved error reporting (thanks @johncosta) and don't encapsulate ports in a list in container_config