Unable to run ACI container with tty and stdin_open

Sam Sperling 21 Reputation points
2022-08-22T10:36:16.287+00:00

I've tried with docker up, docker compose and terraform the problem is always the same:
Running my docker container in my local default environment works fine, but not using ACI in Azure.
Here is the docker compose file: https://gist.github.com/Sam7/a4f13b19affb9775eb253950cb32f6f0

Also the issues I raised in the docker image repo:
https://github.com/TheRemote/Legendary-Java-Minecraft-Geyser-Floodgate/issues/1

My best bet is that the options -i for interactive and -t for enabling pseudo tty are not available for Azure containers.

Does anyone have a clue how to fix this?

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
757 questions
0 comments No comments
{count} votes

Accepted answer
  1. deherman-MSFT 38,021 Reputation points Microsoft Employee Moderator
    2022-08-22T20:45:56.443+00:00

    @Sam Sperling
    It appears that the portion of the script failing is the last few lines. The screen command is the one returning the error "Must be connected to a terminal." I found a few related issues to this with some workarounds. You might try executing them by editing the script to include the command.

    "Inside the docker container, run script /dev/null first. Then you should be able to start screen"

    https://github.com/moby/moby/issues/30421
    https://github.com/moby/moby/issues/728

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.