Public Repository

Last pushed: 2 years ago
Short Description
This docker is meant to be used as an ambassador to facilitate the docker ambassador linking pattern.
Full Description

Docker Ambassador

This docker is meant to be used as an ambassador to facilitate the docker ambassador linking pattern. Detailed information on this can be found here. The github associated with this docker can be found here.

Build

docker build -t reedd/ambassador .
docker tag reedd/ambassador ambassador

Run

To run it on a remote host, you can use:

docker run -t -i \
    -name redis_ambassador \
    -expose 6379 \
    -e REDIS_PORT_6379_TCP=tcp://<DOMAIN OR IP ADDRESS>:6379 \
    ambassador

Here is another example with MySQL:

docker run -t -i \
    -name sql_ambassador \
    -expose 3306 \
    -e MYSQL_PORT_3306_TCP=tcp://<DOMAIN OR IP ADDRESS>:3306 \
    ambassador

If you want to access your ambassador locally you can simply add the -p option with the ports you'd like to use i.e. -p 3306:3306.

Boot2Docker Notes

If you want the ambassador to connect to the localhost of the machine that's running your Boot2Docker VM you can do it with the IP address 10.0.2.2

docker run -t -i \
    -name sql_ambassador \
    -p 3306:3306 \
    -expose 3306 \
    -e MYSQL_PORT_3306_TCP=tcp://10.0.2.2:3306 \
    ambassador
Docker Pull Command
Owner
reedd