{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Microgateway /
avatar image
0
Question by Etienne Dippenaar · Jun 21, 2018 at 08:20 AM · 305 Views docker

Microgateway is not starting in docker

Hi,


I have created a couple fo microgateways and I am now in the process to experiment on how to create a docker image of a microgateway.

I followed the following article:

https://apigee.com/about/blog/api-technology/running-apigee-edge-microgateway-docker-container and all the steps is work as suggested.

After I have executed the "docker run --env-file ./<org>-<env>-env.list -p 8000:8000 -v <directory containing configuration>:/root/.edgemicro -d -t ndietz/emgw" command I get a long key back. So I assume the container was built successfully.

When I execute the CURL command to the the docker IP then I get the following response:

curl: (7) Failed connect to 172.17.0.1:8000; Connection refused

I then checked with netstat and there is nothing running on port 8000 and checked in docker with "docker ps -a", the container was built: however there is no port listed to the container. But the "npm start" command is present.


Please advise on how do I troubleshoot this? To start the edgemicro gateway with the key and secret is working perfectly.

Comment
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Close

1 Answer

  • Sort: 
avatar image
1

Answer by srinandans@google · Jun 21, 2018 at 02:05 PM

@Etienne Dippenaar

That is a very old article. Please refer to the steps here: https://github.com/apigee-internal/microgateway/tree/master/kubernetes/docker/edgemicro

If you want to run Microgateway on Kubernetes, please see this:

https://github.com/apigee-internal/microgateway/tree/master/kubernetes

Comment
Add comment Show 5 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Etienne Dippenaar · Jun 22, 2018 at 12:24 PM 0
Link

Hi @srinandans

Thank you for the information. I have followed the steps listed in the kubernetes instructions. With the following step I assume it should be: helloword-service and not hellworld-service

When execute the following command I get the "helloword" service listed in the list, Is this correct?

The following steps has a missing H after the -

But thank you for good guidelines, I finally got it working. I have tried the Docker one as well but when I execute step3 I am getting the following issue:

docker: invalid reference format: repository name must be lowercase.

avatar image srinandans@google ♦ Etienne Dippenaar · Jun 22, 2018 at 02:21 PM 0
Link

Thank you @Etienne Dippenaar. Can you please give me the locations to the typo?

For step 3, can you please paste the exact command here?

avatar image Etienne Dippenaar srinandans@google ♦ · Jun 22, 2018 at 04:07 PM 0
Link

Hi,

I have added the locations into my original reply but I see it didn't pull through, sorry about that

When you deploy an application in Edgemicro as a Service:

kubectl apply -f samples/helloworld/hellworld-service.yaml

When you call an API in the verification steps for Edgemicro as a Service:

curl - 'x-api-key:your-edge-api-key' $GATEWAY_IP:80/hello/echo;echo

Docker Command: After I have rerun the same command as yesterday it is now working, not sure why that will happen but the docker is now built, thanks for the great article.


avatar image Etienne Dippenaar srinandans@google ♦ · Jun 27, 2018 at 02:11 PM 0
Link

Hi @srinandans

In your article you say the Openshift part is coming soon. Have you done anything wrt deploying this gateway in Openshift?

Show more comments

Follow this Question

Answers Answers and Comments

51 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Dockerfile of ndietz/emgw container 6 Answers

Edge microgateway docker image size 0 Answers

Issue when deploying microgateway Docker image in OpenShift 2 Answers

Cannot read property 'max_connections' of undefined on running edgemicrogateway as a Docker container 0 Answers

is it possible to run apigee microgateway in a microsoft nanoserver docker image? 1 Answer

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges