if you want to access the Docker API from the containers, you can setup Docker to listen on the IP address of the Docker bridge.
To do that, you would:
- create a bridge
ip link add docker0 type bridge
- assign an IP address to it
ip link set docker0 up
ip addr add 172.17.0.1/16 dev docker0
- start docker and bind the API to the bridge
docker -d -H 172.17.0.1:4242
Now you can access the Docker API from your containers.
No comments:
Post a Comment