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.

  • What's the idiomatic way to share files between docker containers?
  • How to connect to remote Spark cluster from python in docker
  • How can I run specific android app automatically by using Docker?
  • NodeJS & Docker: How to change the default Context an App is under: e.g. /myapp/stuff rather than /stuff
  • Necessity of docker-machine on Linux
  • Docker : using pv (pipe viwer) output nothing on build process
  • I have tried to add a /etc/profile/docker.sh 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.

  • apt-add-repository: command not found error in Dockerfile
  • Docker Container Logs
  • Google Container Registry pushing images into purgatory
  • File is not created in Docker
  • Docker “not found” for existing file
  • How to exit a Docker Remote API Exec Stream?
  • 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.