merlimat opened a new pull request #2425: Standalone bookie should always 
advertise 'localhost' when running in docker container
URL: https://github.com/apache/incubator-pulsar/pull/2425
 
 
   ### Motivation
   
   When pulsar standalone runs in normal mode, the bookie advertises itself 
with `localhost`. This is the expected behavior and works well when changing IP 
or hostname. 
   
   When running with docker, mounting an external volume, eg: 
   
   ```
   docker run -it \
     -p 6650:6650 \
     -p 8080:8080 \
     -v $PWD/data:/pulsar/data \
     apachepulsar/pulsar:2.1.0-incubating \
     bin/pulsar standalone
   ```
   
   the bookie advertises itself with the docker container hostname. When 
restarting the container this will cause the bookie cookie not to match with 
the previous value and fail to start.
   
   ### Modifications
   
   Force to always advertise localhost for standalone bookie.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to