@Viet An Bui Apologies for the delay in response and all the inconvenience caused because of the issue.
I did some research and found that as mentioned by you in your query configuration via environment variables in Azure Container Instances (ACI) is limited. To deploy the Elasticsearch image for a development environment with only one node, an environment variable “discovery.type” with the value “single-node” is required.
I did found below posts from Stack and GitHub which states that mentioned version was not running in both case and in one use case they use the older version with the below command to make it run:
az container create --image elasticsearch:5.6.14-alpine --name $containerGroupName -g $resourceGroup --ip-address public --dns-name-label <mydns> --memory 4 --cpu 2 --ports 9200
In second post the user has mentioned same thing but there is an article mentioned you can try in your environment to see if it works for you or not here.
I have reached out to internal team as well to get better insights about the supported scenario so will keep you posted on same .
Hope it helps!!!
Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.
Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as convenient to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.