loopback addresses in pipelines

ceeceegee November 9, 2021

Hello,

Is it possible to assign loopback addresses (or manual ip addresses to services) to containers within a pipeline? My app needs some dummy addresses to run tests against, and 127.0.0.1 isn't enough.

 

ip addr add 192.168.40.1/32 dev lo
RTNETLINK answers: Operation not permitted

 

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 14, 2021

Hi @ceeceegee ,

Welcome to the community! 

If you need to talk between services running in docker, they have to be attached to the same docker network so you can address the services using <container-name>:<container-port> or consider using docker compose to run the services which create a custom network for the compose stack if you wish to have multiple address/loopback.

For more information, please check:

I hope this helps.

Cheers,
Syahrul

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events