The general architecture of the CLI is described here
The Compose CLI can deploy single containers or Compose applications to ACI.
docker run options to ACI deployments (single container)The Compose CLI can deploy Compose applications to Amazon ECS.