The bindmand-dns-file-agent is an agent responsible for persisting in bindman-dns-manager by a file.
If you find this image useful here's how you can help:
Before reporting your issue please try updating Docker to the latest version and check if it resolves the issue. Refer to the Docker installation guide for instructions.
SELinux users should try disabling SELinux using the command setenforce 0 to see if it resolves the issue.
If the above recommendations do not help then report your issue along with the following information:
docker version and docker info commandsdocker run command or docker-compose.yml used to start the image. Mask out the sensitive bits.bindman-dns-file-agent requires Golang v1.13, a BIND9 DNS Server or Dockerize BIND9 DNS Derver and a bindman-dns-bind9 service to run.
Some parameters are required to running the api, these parameters can be passed via the command line or environment variables as described below
| ENV | Command | Required | Default | Description |
|---|---|---|---|---|
| BINDMAN_DNS_MANAGER_ADDR | -d | true | null | Bindman DNS Manager Address |
| BINDMAN_DNS_REVERSE_PROXY_ADDR | -r | true | null | Bindman DNS Reverse Proxy Address |
| BINDMAN_AGENT_CONFIG_PATH | -c | true | null | Bindman Agent Config Path |
| BINDMAN_LOG_LEVEL | -l | false | info | Sets the Log Level to one of seven (trace, debug, info, warn, error, fatal, panic). Default: info |
Automated builds of the image are available on Dockerhub and is the recommended method of installation.
docker pull labbsr0x/bindman-dns-file-agent
Alternatively you can build the image yourself.
docker build -t labbsr0x/bindman-dns-file-agent github.com/labbsr0x/bindman-dns-file-agent
or
make build
With all dependencies running, start the agent.
Start BINDMAN-DNS-AGENT-FILE using:
docker run --rm --name bindman-dns-file-agent -d --volume ${PWD}/.agent:/data -e BINDMAN_DNS_MANAGER_ADDR=http://bindman-dns-bind9:7070 -e BINDMAN_DNS_REVERSE_PROXY_ADDR=0.0.0.0 -e BINDMAN_AGENT_CONFIG_PATH=/data/bindman_agent.json --network network-bind labbsr0x/bindman-dns-file-agent
or
make docker-run
Alternatively, you can use the sample docker-compose.yml file to start the container using Docker Compose
For the bindman-dns-file-agent to preserve its state across container shutdown and startup you should mount a volume at /data.
The Quickstart command already mounts a volume for persistence.
mkdir -p .agent
To upgrade to newer releases:
docker pull labbsr0x/bindman-dns-file-agent
docker stop bindman-dns-file-agent
or
make docker-stop
docker rm labbsr0x/bindman-dns-file-agent
and
rm -rf .agent
docker run -name bindman-dns-file-agent -d \
[OPTIONS] \
labbsr0x/bindman-dns-file-agent
For debugging and maintenance purposes you may want access the containers shell. If you are using Docker version 1.3.0 or higher you can access a running containers shell by starting bash using docker exec:
docker exec -it bindman-dns-file-agent sh
or
make docker-exec
With all dependencies running, start the agent.
Run in localhost
$ go run main.go agent \
-d=bindman-dns-bind9:7070 \
-r=0.0.0.0 \
-c=bindman_agent.json
For production environments
$ go run main.go agent
$ ENV BINDMAN_DNS_MANAGER_ADDR="bindman-dns-bind9:7070"
$ ENV BINDMAN_DNS_REVERSE_PROXY_ADDR="0.0.0.0"
$ ENV BINDMAN_AGENT_CONFIG_PATH="bindman_agent.json"
Content type
Image
Digest
Size
10.8 MB
Last updated
over 6 years ago
docker pull labbsr0x/bindman-dns-file-agent