Support for port mapping
In docker we can map ports as
docker run -d -p 80:8080 foo/bar
This is super helpful for cases where the container has fixed code to listen to some port like say 8080 but you want to expose that at a different port on the container.
I do not see that option in the CLI. There should be something like
az container create --ports 80:8080
Tom Plant commented
This is critical for migrating 3rd-party services to containers, I'm having to look at other vendors despite all our other infrastructure being on Azure.
Roman Nikitin commented
Is there a workaround for the moment?
Yes, this would be very useful and even better if it would also allow protocol mapping. Seems like currently single container cannot have TCP and UDP at the same time.
is there a list of Docker parameter not support in Azure Container Instance?
Aaron Layfield commented
This is especially important when using third party images that don't listen on standard ports. It requires having to build your own images. Not ideal at the moment.
Radu zidarescu commented
ACI should have this feature as docker offers it for local DEV and ACI seems like a cheap, agile DEV env for the cloud when working with containers.
Ramandeep Singh commented
This is a must have feature for ACI
This would be FANTASTIC converting to Kubernetes was going to take a a bit of dev effort we’d rather not dedicate at the moment
Currently you need to specify every single exposed port in configuration or CLI. We'd like to be able to specify port ranges, e.g. 8080-8089 for a cleaner configuration and scripts.