Specifying Docker daemon host in Elastic Beanstalk

I’d like to set a proper docker host when running the daemon on boot.

Is there any way I can pass runtime flags? Ideally I’d like to reproduce:

  • docker container in AWS VPC, good idea or not? [closed]
  • Docker image behaves different on different machines
  • How to set up autoscaling RabbitMQ Cluster AWS
  • Authorization error with AWS
  • Docker on AWS filling up its thin pool while running somehow?
  • Docker nfs4 mount on Elastic Beanstalk
  • docker -H 0.0.0.0:2375 -d &

  • Attempting to access USB device from Docker in Windows
  • How to change Docker ENV var?
  • Setting up Docker on Windows for PHP - can not find config file
  • How to make environmental variables available to Docker RUN commands from docker-compose?
  • composer cannot allocate memory inside container docker
  • Logging to logstash from python
  • One Solution collect form web for “Specifying Docker daemon host in Elastic Beanstalk”

    I’ve been looking at the same and it seems that the “right” way to do this depends on the system that you are using.

    Ubuntu-based systems

    The official docs explain it for Ubuntu under the networking section. Update the DOCKER_HOST variable in /etc/default/docker and restart the docker daemon.

    Beanstalk Docker AMI

    The file is in a different location: /etc/sysconfig/docker and contains a setting other_arg"-r=false". Add any options you want to pass to the Docker daemon at startup.

    Restarting Docker daemon

    As I am not too familiar with the internal workings of EB and how the Docker daemon is run, I’d suggest rebooting the EC2 instance afterwards. This will start Docker with the modified settings in the appropriate file.

    I hope that helps.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.