0.6.0 Networking

Drone now aligns with docker-compose and bridge networking with hostnames. This means services are no longer accessible on localhost or 127.0.0.1 and are instead available using their hostname as defined in the yaml configuration file.

pipeline:
  build:
    image: golang
    commands:
-     - mysql -h localhost:3306
+     - mysql -h mysql:3306

services:
  mysql:
    image: mysql

There are no immediate plans to continue support for pod networking (e.g. localhost) unless natively supported by Docker. I have opened this issue with the Docker project to request native pod networking. Please considering voicing your support if this capability is important to you or your organization.

Is there a mistake on this page? Please let us know or edit this page.