0

I'm trying to run the Getting Started app from a Docker container and I'm running into the following error.

py4j.protocol.Py4JNetworkError: An error occurred while trying to connect to the Java server (127.0.0.1:25333)

I haven't changed any settings on either side of the gateway.

My Dockerfile is below.

# start building off a base image with JDK already installed
FROM java:openjdk-8-jdk-alpine

WORKDIR /app

ADD . /app

RUN apk update
RUN apk add --no-cache python3
RUN apk add --no-cache py-pip

RUN pip install -r requirements.txt

EXPOSE 5001

CMD ["python", "server.py"]

Port 5001 is for my application server which instantiates the JavaGateway.

Carpetfizz
  • 8,707
  • 22
  • 85
  • 146

0 Answers0