Skip to content

Check dev container (container) properties before attempting to modify CAP_NET_ADMIN #683

Open
@mafredri

Description

@mafredri

Right now we try to set CAP_NET_ADMIN on the agent binary within the dev container (similar to our bootstrap scripts). This is to improve network performance, but we could probably skip the attempt if we know the container won't support it and thus not print a warning.

See agent/agentcontainers/api.go.


This will probably fail unless the container is running as privileged or has the specific CAP_NET_ADMIN privilege set on the container?

Originally posted by @johnstcn in coder/coder#18245 (comment)

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