Skip to content

Connection between docker instances #29

Answered by hassenius
walbertus asked this question in docker
Discussion options

You must be logged in to vote

I've just wrestled with this same problem, and after some pointers from the folks over at IRC found the solution in this

platforms:
  - name: ${MOLECULE_SCENARIO_NAME}-pdns
    image: pdns-alpine:4.2.3
    docker_networks: 
      - name: ${MOLECULE_SCENARIO_NAME}
    publish_all_ports: true
    env:
      PDNS_LOG_LEVEL: "5"
      PDNS_WEBSERVER_ALLOWED_FROM: 0.0.0.0/0
    pre_build_image: yes
    override_command: no
  - name: ${MOLECULE_SCENARIO_NAME}-runner
    image: python:3.9-alpine-requests
    docker_networks: 
      - name: ${MOLECULE_SCENARIO_NAME}
    pre_build_image: true
    command: sleep infinity

and then I can do things like

nslookup -type=a myhost.testzone {{ groups['all'…

Replies: 0 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by walbertus
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
docker
Labels
None yet
3 participants