Customizing the Docker Run Command on Elastic Beanstalk


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/ 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.

asked 9 months ago37 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions