nightlord189 / docklogkeeper Goto Github PK
View Code? Open in Web Editor NEWSimple persistent log viewer for docker containers.
License: MIT License
Simple persistent log viewer for docker containers.
License: MIT License
Hi!
I'm having two issues here. The first one is that, when I try to spin up the container from my Ubuntu machine, I get a warning: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested.
EDIT: I'm using Ubuntu 22.04LTS to spin this container up,
The second issue is when the container runs, these are the logs:
start #1
2023-09-03T11:34:46+02:00 start #2 | log_level=debug component=docklogkeeper
current directory /
current executable /main
2023/09/03 11:34:46 goose: no migrations to run. current version: 1
2023/09/03 11:34:46 error on init docker: unable to parse docker host `dockerproxy`
2023-09-03T11:34:46+02:00 create docker client error | log_level=error component=docklogkeeper error=unable to parse docker host `dockerproxy`
For clarity, here's my docker compose, with other services that are up and running currently:
version: "3.8"
x-default-conf: &default_conf
restart: unless-stopped
networks:
- managementStackNetwork
- socketProxyNetwork
x-authelia-conf: &authelia
labels:
- swag=enable
- swag_auth=authelia
x-environment: &environment
PGID: ${PGID}
PUID: ${PUID}
TZ: ${TZ}
DOCKER_HOST: dockerproxy
services:
portainer:
command: -H tcp://dockerproxy:2375
container_name: portainer
image: portainer/portainer-ce:latest
environment:
<<: *environment
<<: [ *default_conf, *authelia ]
ports:
- 9000:9000
volumes:
- ${DOCKERCONFDIR}/portainer:/data
- ${DOCKERSTORAGEDIR}:/storage
watchtower:
image: containrrr/watchtower
command: -H tcp://dockerproxy:2375
container_name: watchtower
environment:
<<: *environment
WATCHTOWER_SCHEDULE: "0 0 03 * * *"
WATCHTOWER_CLEANUP: "true"
<<: *default_conf
homarr:
container_name: homarr
image: ghcr.io/ajnart/homarr:latest
environment:
<<: *environment
<<: *default_conf
volumes:
- ${DOCKERCONFDIR}/homarr/configs:/app/data/configs
- ${DOCKERCONFDIR}/homarr/icons:/app/public/icons
ports:
- 7575:7575
uptime-kuma:
image: louislam/uptime-kuma
container_name: uptime-kuma
environment:
<<: *environment
<<: [ *default_conf, *authelia ]
volumes:
- ${DOCKERCONFDIR}/uptime-kuma:/app/data
ports:
- 3001:3001
docklogkeeper:
container_name: docklogkeeper
image: nightlord189/docklogkeeper:latest
command: -H tcp://dockerproxy:2375
volumes:
- ${DOCKERCONFDIR}/docklogkeeper:/logs
environment:
<<: *environment
PASSWORD: ${DOCKLOGKEEPER_PWD}
<<: *default_conf
ports:
- 3010:3010
networks:
managementStackNetwork:
driver: bridge
external: true
socketProxyNetwork:
driver: bridge
external: true
I already tried without the command: -H tcp://dockerproxy:2375
line, but it wouldn't work.
On login I briefly see the application but am immediately bounced back to the login screen.
Chrome works fine.
docker-compose.yml
version: "3"
services:
docklogkeeper:
container_name: docklogkeeper
image: nightlord189/docklogkeeper:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- docklogkeeper:/logs
ports:
- 3010:3010
environment:
- PASSWORD=admin
volumes:
docklogkeeper:
log
sudo docker-compose up docklogkeeper
...
docklogkeeper | {"log_level":"error","component":"docklogkeeper","error":"context canceled","time":"2024-01-17T06:17:37Z","message":"get containers error"}
docklogkeeper | {"log_level":"error","component":"docklogkeeper","error":"get containers error: context canceled","time":"2024-01-17T06:17:37Z","message":"get alive containers error"}
docklogkeeper | {"log_level":"error","component":"docklogkeeper","error":"get alive containers error: get containers error: context canceled","time":"2024-01-17T06:17:37Z","message":"get containers error"}
docklogkeeper | [GIN-debug] [WARNING] Headers were already written. Wanted to override status code 500 with 200
OS: Apple M1 - Sonoma 14.2.1
The log from my rclone docker container, as seen by docker logs -ft rclone
:
2023-09-10T12:24:12.231997875Z 2023/09/10 12:24:12 INFO : vfs cache: cleaned: objects 3 (was 10) in use 0, to upload 0, uploading 0, total size 0 (was 0)
docklogkeeper's error when trying to parse that log:
2023-09-10T12:24:22.146838681Z {"log_level":"error","component":"docklogkeeper","short_name":"rclone-gdrive-mount","time":"2023-09-10T12:24:22Z","message":"error parse timestamp, error: parsing time \"10T12:24:12.231997875Z\" as \"2006-01-02T15:04:05Z07:00\": cannot parse \"10T12:24:12.231997875Z\" as \"2006\" log: 10T12:24:12.231997875Z 2023/09/10 12:24:12 INFO : vfs cache: cleaned: objects 3 (was 10) in use 0, to upload 0, uploading 0, total size 0 (was 0)\r\n"}
I get the above message when deploying the app.
No containers show in the list
works fine with webhooks (ntfy.sh)
if you use ntfy.sh with bearer authentication:
Contains:
msg="Unsuccessful (example)
Url;
https://ntfy.sh/SERVERXYZ
Webhook headers:
Authorization:Bearer tk_y21238238912asdasdaj;tags:rotating_light;title:$dlk_container_name
Body:
{
"Zeit": "$dlk_timestamp",
"Container": "$dlk_container_name",
"Log": "$dlk_log"
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.