Hello, I am getting an error when running this command:
docker run -d -p 20080:80 --link cddbbackend:cddbbackend --name cddbfrontend frontend:v2
And i get this error:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "catalina.sh": executable file not found in $PATH: unknown.
I made an image from my Dockerfile. The image is called ‘frontend:v2’ as you can see in the command. I want to basically create a new container called cddbfrontend, which links to my, already running, Java backend container called cddbbackend. Basically an NGINX reverse proxy.
This is my Dockerfile for building the image frontend:v2:
FROM nginx:alpine COPY frontend/src /usr/share/nginx/html COPY frontend/resources/nginx.conf /etc/nginx ENTRYPOINT ["catalina.sh", "run"]
Ive tried removing the ENTRYPOINT, but when i run the docker run command without the ENTRYPOINT in the Dockerfile, the cddbfrontend container’s port suddenly disappears, or is not running when i run command
docker ps. I access it in the webbrowser with localhost:20080 but it tells me it can’t connect to it. What am I doing wrong?