Lucee4 docker container running but not accessible

#1

Hi,

I’m using the following command to start up a lucee4 docker container in the background, which ran fine:
(docker run -d --rm -p 8804:8888 --name apps -v /home/dli/lucee/www:/var/www lucee/lucee4 &)

See below,
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b6f5c430124e lucee/lucee4 “catalina.sh run” 11 minutes ago Up 11 minutes 8080/tcp, 0.0.0.0:8804->8888/tcp apps

And certainly I have the lucee4 docker image:
lucee/lucee4 latest 1ff1e084eb83 9 months ago 544MB

So, I attempted to access a web app under lucee4 at port 8888, also tried to access the default lucee admin site, but they were not reachable.

The Dockerfile under lucee is pretty straightforward.
cat Dockerfile
FROM lucee/lucee4:latest
COPY www /var/www
#RUN chown root:www-data /var/www
#RUN chmod 660 /app/tmp/settings.json

What could be wrong?

Thanks.

#2

What happens if you use port 8804, which is what you’re telling Docker to use in that statement?

#3

I tried 8888:8888 and it worked. thanks.