Customizing the Docker Run Command on Elastic Beanstalk

0

I'm running a single container setup on Elastic Beanstalk using the Amazon Linux 2 Docker platform.

The container is running a third-party image that is fully functional only when its hostname matches an issued license file.

With the previous iteration of Docker platform on Amazon Linux, it was possible (though never officially supported) to override the docker run command by using an ebextension to patch the /opt/elasticbeanstalk/hooks/appdeploy/pre/04run.sh script to inject -h MY_HOST. This does not seem to work on Amazon Linux 2.

Is there any officially supported way to set the hostname of a container running on Elastic Beanstalk using the Amazon Linux 2 Docker platform? Thanks for any help you can provide.

demandé il y a 2 ans138 vues
Aucune réponse

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions