Tried to configure the drone server and runner locally using localhost but the runner cannot ping the server

i tried to do it in localhost

docker run


docker run --detach

The reason this does not work is because container networks are completely isolated which means the server and runner are on completely separate networks. This means localhost refers to the network inside the runner container; the server is not running inside the runner container which is why you cannot use localhost to connect.

If you want to run the server and runner containers on the same machine, and have them communicate, you need to use docker networking:

We also provide a docker-compose file that you can use as reference, but you would still need an understanding of docker networking in order to modify to meet your needs:

thank you for your response. I used ngrok for configuring runner and server in the local machine. now it is running fine and runner is able to ping the server