You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[#18572]yugabyted: Binding advertise_address to hostname for docker based deployments.
Summary:
In docker based deployments, yugabyted by default binds to the ip_address of the container. When the hostname machine restarts, yugabyted fails to restart as the ip-address of the container would have changed. Updating the default behavior of yugabyted to bind with container `hostname` in docker deployments.
### Tests
1. Start yugabyted node docker
```sh
docker run -d --name yugabyte --hostname yugabyte -p7000:7000 -p9000:9000 -p15433:15433 -p5433:5433 -p9042:9042 nchandrappa/yugabyte:2.25.0.0-hostname bin/yugabyted start --background=false
```
2. Stop YB container
```sh
docker stop <container-id>
```
3. Start YB container
```sh
docker start <container-id>
```
Jira: DB-7509
Test Plan: manual test
Reviewers: sgarg-yb
Reviewed By: sgarg-yb
Subscribers: yugabyted-dev
Differential Revision: https://phorge.dev.yugabyte.com/D39786
0 commit comments