Skip to content

Permission denied on port 80 #55

Closed
@FlorentTorregrosa

Description

@FlorentTorregrosa

Hello,

This is a follow-up of #42 .

The command docker run -it --rm -u varnish varnish -a http=:8080,HTTP -n /tmp/varnish_workdir from comment #42 (comment) is not working.

Still getting:

Error: Could not get socket :80: Permission denied
(-? gives usage)

In my Docker compose file, I tried to override the default command providing options, to not have to override the entrypoint entirely:

    command: "-p default_ttl=3600 -p default_grace=3600 -p default_keep=0 -a http=:8080,HTTP -n /tmp/varnish_workdir"

But it does not override -a http=:80,HTTP \ of the default entrypoint.

As a workaround I will add:

    user: root

in my Docker compose.

But I think a long term solution would be to change default port as initally requested in the referenced issue. Or to put HTTP and PROXY ports inside environment variables to easily be overridden.

Thanks for the reply.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions