I have an interesting problem.
We have a container running docker in drone to test an ansible script using molecule.
This script works fine on our old docker runner, but on another server it fails: the container started by drone can reach the service, but the container started from that container can not.
Any clues what could be the cause? I’m trying to figure out if there are any differences between the environments (eg docker/docker-runner version), but no luck until now.
--- kind: pipeline type: docker name: molecule_build concurrency: limit: 1 steps: - name: test using molecule image: xxx/molecule commands: - "export PGSQL_HOST=$(nslookup pgsql | sed -n -e 's/Address: //p')" - echo $PGSQL_HOST - cd ansible/roles/cable_alert - molecule test volumes: - name: docker_socket path: /var/run/docker.sock privileged: true environment: MOLECULE_NO_LOG: "true" GITEA_TOKEN: from_secret: GITEA_TOKEN services: - name: pgsql image: kartoza/postgis:12.0 volumes: - name: docker_socket host: path: /var/run/docker.sock