You are not logged in.

#1 2021-04-23 20:02:27

sjoerd222
Member
Registered: 2015-09-22
Posts: 7

Issue with docker when running nginxproxy/nginx-proxy

I had an issue with docker for which I found at that the very same works on docker-desktop on Windows 10 but not on my Arch Linux. Originally I posted the issue as a stackoverflow question before I realized that it could be specific to arch.

To summarize the issue, I am using this simple docker-compose.yml:

services:

  nginx-proxy:
    image: nginxproxy/nginx-proxy
    ports:
      - 80:80
      - 443:443
    volumes:
      - /var/run/docker.sock:/tmp/docker.sock:ro
    depends_on:
      - hello-world
      
      
  hello-world:
    image: nginx
    ports:
      - 9001:80
    environment:
      VIRTUAL_HOST: hello.world
    volumes:
      - ./web:/usr/share/nginx/html

I have a hello-world like html file index.hml in the web folder. When running the containers with

docker-compose up -d

I would expect that

curl -H "Host: hello.world" localhost:80

would return the given index.html file. But it does not on Arch Linux while it works as expected with docker-desktop on a Windows 10.

I have the same issue on my desktop PC as well as on a freshly setup Raspberry Pi 4 running AArch64 ARM kernel with basically only docker, docker-compose and git installed additionally. What could be going wrong? How can I investigate any further?

Offline

#2 2021-04-25 07:28:29

sjoerd222
Member
Registered: 2015-09-22
Posts: 7

Re: Issue with docker when running nginxproxy/nginx-proxy

I think the problem is what is discussed here: https://github.com/nginx-proxy/nginx-proxy/issues/1548

Offline

Board footer

Powered by FluxBB