Are these Azure Container Instances features a thing?

Maximilian Lambert 0 Reputation points
2024-08-05T20:39:04.15+00:00

Hello. Currently trying to set up a dockerized game server through ACI.

There are several hardcoded port ranges within the prebuilt game binary that I unfortunately cannot change.

Are we able to add port ranges for container groups?

Can we specify both UDP and TCP as protocols for a given port or range?

I tried doing some iptables prerouting magic in the Docker container but that requires elevated permissions in the container, which is not supported for ACI.

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
690 questions
{count} votes

1 answer

Sort by: Most helpful
  1. akinbade abiola 15,225 Reputation points
    2024-08-06T00:43:47.4766667+00:00

    Yes, ACI supports specifying port ranges for container groups and you can specify both UDP and TCP protocols for a given port or range in ACI.

    Instead of using iptables, you'll need to rely on the port mappings provided by ACI as iptables within the container isn't supported.

    Try to create a container group with the port config using the cli

    az container create \
        --resource-group your-resource-group \
        --name your-game-server \
        --image your-game-server-image \
        --ports 27015 27015 27020 27000 27005 27031 27036 \
        --protocol TCP UDP UDP UDP UDP UDP UDP \
        --ip-address public
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.