chander35 opened a new issue, #4256:
URL: https://github.com/apache/camel-k/issues/4256

   Here, I have used a simple code to expose the REST url as i mentioned below
   <img width="458" alt="image" 
src="https://user-images.githubusercontent.com/128601152/231826248-9ac7a69c-ab5b-46e8-9ced-1184e8d8487d.png";>
   
   when I run the Kamel command for the same REST code, the build got 
successful and shown message like **"Listening on: http://0.0.0.0:8080"**, 
below I have shared the screenshot for the same.
   <img width="849" alt="image" 
src="https://user-images.githubusercontent.com/128601152/231827060-c7a4a06c-38fc-4fe2-9950-17597525464f.png";>
   
   But Iam not able to access the url as mentioned above, I have tried 
different ways to access like
   **http://0.0.0.0:8080/hello
   http://localhost:8080/hello
   http://127.0.0.1:8080/hello** in web browser as well as in postman, still no 
use.
   
   later I got to know that we need to expose the port in docker to access the 
actual 8080 port, so i tried below mentioned command to expose outside the 
docker **"docker run -it -p 8080:8080 <image name> "** but every time iam 
getting same error as shown below
   <img width="844" alt="image" 
src="https://user-images.githubusercontent.com/128601152/231830209-bcf08f04-e362-4f4e-a5e3-606a11209fa8.png";>
   
   I want to know where i am doing wrong and how can i resolve this.


-- 
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: commits-unsubscr...@camel.apache.org.apache.org

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

Reply via email to