A task is an instruction to attempt the execution of a runtime context. It doesn't make sense to attach networks or endpoints to a task. These are really part of the container runtime.
Proposal:
- Rename
Container to ContainerSpec.
- Move
NetworkAttachment and Endpoint to Container.
cc @mrjana @aluzzardi