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.

已提問 2 年前檢視次數 139 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南