cloud-integration-beta
cloud-integration-beta copied to clipboard
Cannot map container ports on ACI
ACI does not support port mapping so commands like docker run -d -p 8080:80 nginx will fail. You will need to make sure that your docker run commands specify the same container and host ports. e.g.: docker run -d -p 80:80 nginx.
The same applies for services defined in a Compose file.
So does this mean if I have two web apps on port 80 in a compose file, it won't work with docker compose up?
First bit of feedback on this repo, thanks @BretFisher :)
Yes, unfortunately with ACI we can't have two services that use the same port in the Compose stack. This is a combination of two issues:
- ACI doesn't support port mapping
- We create all the containers in the same container group which is similar to a Kubernetes pod in that all the containers are scheduled on the same host