jyf111 commented on issue #1793:
URL: https://github.com/apache/kvrocks/issues/1793#issuecomment-1793658710

   How about using the following commands? @git-hulk 
   
   ```shell
   id="$(docker run --rm -d -p 6666:6666 kvrocks:ci)"
   sleep 1m # waiting for the periodic container health check
   
   if [ "$(docker inspect --format='{{.State.Health.Status}}' $id)" != 
"healthy" ]; then
     echo "Container is not healthy."
     exit 1
   fi
   
   if [ "$(ss --listening --no-header --tcp '( sport = :6666 )')" == "" ]; then
     echo "The container listening port can not be accessed from outside."
     exit 1
   fi
   
   docker stop $id
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to