Custom DOCKER_HOST in Elastic Beanstalk Docker environment

I have an ElasticBeanstalk setup using Amazon’s Docker AMI. I have just started experimenting with setting up a new environment within my EB Application. It is running as Webserver with Docker.

What I am trying to do with this environment is have Docker daemon running that is running on TCP rather than a Unix socket. That works by modifying /etc/sysconf/docker and adding the -H flag. Unfortunately, that breaks that EB deployment scripts because they are expecting the Docker daemon on the default Unix socket.

  • Dynamically assigns different value for the environment variable upon a Docker service scale
  • Error response from daemon: EOF on remove image
  • Docker - server hitting EOF
  • Dockerfile and issue making work bower install
  • gitlab can not change gitlab url ,i edit config,yml , gitlab.yml
  • Docker seems to be migrating database on the server instead of migrating on RDS
  • I have tried to add a /etc/profile/ which contains the appropriate DOCKER_HOST variable. However, it doesn’t seem to be picked up by the EB deployment scripts.

    Did anyone try something similar? Where can I ‘globally’ set the DOCKER_HOST so it gets picked up by the EB deployment?

    I appreciate any hints and suggestions.

  • No connection to generic driver
  • Why doesn't Webpack-Dev-Server (inside docker container) detect file changes when used with a new Vue.js CLI Webpack Template Project?
  • swift build faild due to “database is locked” in docker contianer?
  • docker cloud auto-build tag expression
  • Monitoring docker with prometheus - cpu usage looks the same for different containers
  • Volume sharing in Docker and Virtualbox
  • One Solution collect form web for “Custom DOCKER_HOST in Elastic Beanstalk Docker environment”

    You can use multiple -H flags to have your docker daemon listening on both the unix socket and TCP socket.

    Wouldn’t that please the EB deployment script while still allowing you to control the docker daemon with TCP?

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