add a special env var DOCKER_HOST_IP to all images
[discourse_docker.git] / templates / sshd.template.yml
index 327ad29eb660dc6c75f5912d44202126a5f80fe8..7325262b439e56e6fadfe1bcec7b5896d6372250 100644 (file)
@@ -15,6 +15,8 @@ run:
      contents: |
         #!/bin/sh
         exec 2>&1
+        echo export DOCKER_HOST_IP=$DOCKER_HOST_IP > /etc/profile.d/docker.sh
+        chmod +x /etc/profile.d/docker.sh
         exec /usr/sbin/sshd -D -e
 
   - exec: