feat: add logging to Docker and iptables operations, fix iptables path
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
- Create /var/log/network-go directory in Dockerfile for log storage - Add comprehensive logging to Docker client creation, network management, and container operations - Add logging to iptables rule management (list, delete, etc.) - Fix iptables executable path resolution in deleteMatchingLinesInContainer to use configured binary path
This commit is contained in:
+4
-1
@@ -18,6 +18,9 @@ RUN apk add --update --no-cache \
|
||||
util-linux \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
# Create log directory
|
||||
RUN mkdir -p /var/log/network-go
|
||||
|
||||
COPY --from=builder /build/network-go /usr/local/bin/network-go
|
||||
|
||||
CMD ["/usr/local/bin/network-go"]
|
||||
CMD ["/usr/local/bin/network-go"]
|
||||
|
||||
Reference in New Issue
Block a user