I’ve run Docker CE on azure vms on individual host, also customized ACS for swarm and they are both a PITA in their own ways.
Either way use terraform or ARM templates to provision where you can. Probably need the ARM templates for the newer container instance service since I doubt terraform is updated yet.