Open biguphpc opened 4 years ago
hi @biguphpc thank you for opening this issue! @smusali and I are looking into this and will get back to you.
Does this issue also surface if you use one of our other available Docker setup methods? For example:
sudo docker run --name="logdna" --restart=always \
-d -v=/var/run/docker.sock:/var/run/docker.sock \
-e LOGDNA_KEY="<LogDNA Ingestion Key>" \
logdna/logspout:latest
Also do you have any other processes running on port 80? You can run lsof -i:80 to check and send a kill -9 with the associated pid (https://stackoverflow.com/questions/3855127/find-and-kill-process-locking-port-3000-on-mac)
Yes we do have other processes running on port 80 and do not want to kill our web server running on port 80.
This only happens when the container is runs on bridge
networking mode.
I understand @biguphpc. So it looks like official logspout listens on port 80 by default (https://github.com/gliderlabs/logspout) and it can be configured via the PORT variable (see the environment variable section of the logspout README). Would update the environment section in your docker compose file to contain the desired port.
Environment variables (section in the official logspout README): PORT or HTTP_PORT - configure which port to listen on (default 80)
Sample docker compose file using the PORT environment variable:
version: '3'
services:
logdna-containers:
image: logdna/logspout:latest
restart: unless-stopped
network_mode: host
hostname: logdna-containers
container_name: logdna-containers
environment:
LOGDNA_KEY: "xxxx"
TAGS: "container"
PORT: 90
volumes:
- /etc/hostname:/etc/host_hostname:ro
- /var/run/docker.sock:/var/run/docker.sock
@biguphpc following up- did that help resolve your issue?
Hi, we've having constant errors in the logs when starting this container.
This seems to happen every minute. Here's the
docker-compose.yaml
we're using:1) Can you tell us what is going on ? 2) What is the use of listening to port 80 ?
Thanks