docker image is not compatible with an openshift environment where port 80 is not allowed
Closed this issue · 1 comments
I am using the solidnerd/bookstack:22.04 image. However I note that it cannot be deployed on our openshift environment where port 80 is not authorized.
How was I able to verify this: when I launched this image locally with docker, I see that the corresponding container is still listening on port 80 although I used port 8080.
docker network create bookstack_nw
docker run -d --net bookstack_nw -e MARIADB_ROOT_PASSWORD=secret -e MARIADB_DATABASE=bookstack -e MARIADB_USER=bookstack -e MARIADB_PASSWORD=secret --name="bookstack_db" mariadb:10.5.17
docker run -d --net bookstack_nw -e DB_HOST=bookstack_db:3306 -e DB_DATABASE=bookstack -e DB_USERNAME=bookstack -e DB_PASSWORD=secret -e APP_URL=http://example.com -p 8080:8080 --name="bookstack_22.04" solidnerd/bookstack:22.04
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3eba1aeb78c2 solidnerd/bookstack:22.04 "/bin/docker-entrypo…" 14 seconds ago Up 11 seconds 80/tcp, 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp bookstack_22.04
You can see that the container is still listening on port 80 which can not be allow in our openshift.
Perhaps this is due to the php:8.2-apache-buster image in the dockerfile statement below, which already contains apache
FROM php:8.2-apache-buster as final
Please could i have some help to fix this ?
thanks in advance
This issue has been automatically marked as stale because it has not had any activity for the last 30 days. It will be closed if no further activity occurs during the next 7 days. Thank you for your contributions.