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.