Docker published port on 80 directed to Apache?

NethServer Version: NethServer release 7.9.2009 (final)
Module: Docker

I am trying to set up a Docker container with a published port of 80 on the container to 7997 on the host (-p 7997:80). When I do this, the host redirects traffic to the Apache server instead of the Docker container. Any ideas on how to correct this?

Did you enable the docker repository to update docker to the recent version?
May I ask which docker container you use and which network? Did you create services/firewall rules?
I’d like to reproduce it.

It’s not required but could solve issues.

I’ll test it…

1 Like

Hm, here it works on a test VM in default “bridge” network without service creation or firewall rules.

Maybe check if ports are in use or misconfigured:

# docker ps -a
CONTAINER ID   IMAGE                        COMMAND                  CREATED          STATUS                     PORTS                                            NAMES
f74fb20d3064   "/init"                  46 minutes ago   Up 46 minutes              443/tcp,>80/tcp, :::7997->80/tcp   piwigo