Skip to content

failed to start [/usr/sbin/iptables-restore --wait 30 --wait-interval 100000]: exit status 2: unknown #34

Closed

Description

@johnwmail

docker-compose:
image

error messages:
image

/etc/docker/daemon.json:
image

Any workaround how to solve it? thanks.

Activity

  1. wollomatic commented on Sep 21, 2024

    @wollomatic
    Owner

    I'm not familiar with sysbox-runc. Socket-proxy is just a SCRATCH image, so there is no /usr/sbin/iptables-restore binary in the container image. There is also no glibc or musl in the image that could be needed to run iptables-restore.

    Maybe it's worth a try to create a container image based on a distroless or a minimal linux image, like gcr.io/distroless/base-debian12:nonroot, alpine:3.20, or even Ubuntu.

    Sample Dockerfile:

    FROM wollomatic/socket-proxy:1 AS proxy
    FROM gcr.io/distroless/base-debian12:nonroot AS base
    VOLUME /var/run/docker.sock
    EXPOSE 2375
    ENTRYPOINT ["/socket-proxy"]
    COPY --from=proxy ./healthcheck ./socket-proxy /
    
  2. johnwmail commented on Sep 22, 2024

    @johnwmail
    Author

    Thank for your sharing, thanks.

    I noticed, it works if comment out "#internal: true" (it also work, if external: false), thanks
    image

  3. Repository owner locked and limited conversation to collaborators on Sep 22, 2024
  4. converted this issue into a discussion #37 on Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions