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ビュー
回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ