You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "rnz (via GitHub)" <gi...@apache.org> on 2023/10/23 19:11:49 UTC

[I] Wrong bind 127.0.0.1 for docker image [kvrocks]

rnz opened a new issue, #1851:
URL: https://github.com/apache/kvrocks/issues/1851

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/kvrocks/issues) and found no similar issues.
   
   
   ### Version
   
   Bind to 127.0.0.1 in the configuration is not suitable for the docker image
   
   ### Minimal reproduce step
   
   ```
   $ docker run -d -p "6666:6666" apache/kvrocks:latest
   67a4d65e172a67ce9d3c32a159fbdd1c9fd137294f9ca91a97a5728965558631
   
   $ docker ps
   CONTAINER ID  IMAGE                            COMMAND               CREATED         STATUS         PORTS                     NAMES
   67a4d65e172a  docker.io/apache/kvrocks:latest                        4 minutes ago   Up 4 minutes   127.0.0.1:7639->6666/tcp  focused_grothendieck
   
   $ docker exec -it 67 sh 
   Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
   / # netstat -tlnp
   Active Internet connections (only servers)
   Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
   tcp        0      0 127.0.0.1:6666          0.0.0.0:*               LISTEN      1/kvrocks
   tcp        0      0 127.0.0.1:6666          0.0.0.0:*               LISTEN      1/kvrocks
   tcp        0      0 127.0.0.1:6666          0.0.0.0:*               LISTEN      1/kvrocks
   tcp        0      0 127.0.0.1:6666          0.0.0.0:*               LISTEN      1/kvrocks
   tcp        0      0 127.0.0.1:6666          0.0.0.0:*               LISTEN      1/kvrocks
   tcp        0      0 127.0.0.1:6666          0.0.0.0:*               LISTEN      1/kvrocks
   tcp        0      0 127.0.0.1:6666          0.0.0.0:*               LISTEN      1/kvrocks
   tcp        0      0 127.0.0.1:6666          0.0.0.0:*               LISTEN      1/kvrocks
   
   / # exit
   ```
   ```
   $ redis-cli -p 6666 info | wc -l
   Error: Connection reset by peer
   ```
   
   ### What did you expect to see?
   
   Connecting by redis-cli to kvrocks instance which was run in docker, such for example as it make with r redis images:
   
   ```
   $ docker ps
   CONTAINER ID  IMAGE                            COMMAND               CREATED         STATUS         PORTS                     NAMES
   55a62aa0c896  docker.io/library/redis:latest   redis-server          29 minutes ago  Up 29 minutes  0.0.0.0:6379->6379/tcp    gifted_kare
   $ redis-cli -p 6379 info | wc -l
   214
   ```
   
   ### What did you see instead?
   
   ```
   Error: Connection reset by peer
   ```
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Wrong bind 127.0.0.1 for docker image [kvrocks]

Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice commented on issue #1851:
URL: https://github.com/apache/kvrocks/issues/1851#issuecomment-1776234069

   Hi @rnz, thanks for your report.
   
   We have fix it in https://github.com/apache/kvrocks/pull/1784, although there is currently no release including this commit.
   
   To workaround it in `2.6.0`, you can overwrite the configuration option like:
   ```
   docker run -it apache/kvrocks:2.6.0 --bind 0.0.0.0
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Wrong bind 127.0.0.1 for docker image [kvrocks]

Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice commented on issue #1851:
URL: https://github.com/apache/kvrocks/issues/1851#issuecomment-1779227165

   I will close this issue since it is fixed. 
   
   Feel free to open it again if you have further problem about it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Wrong bind 127.0.0.1 for docker image [kvrocks]

Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice closed issue #1851: Wrong bind 127.0.0.1 for docker image
URL: https://github.com/apache/kvrocks/issues/1851


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org