Check dev container (container) properties before attempting to modify CAP_NET_ADMIN
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 3
- Forks
- 0
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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 https://github.com/coder/coder/pull/18245#discussion_r2132512004_
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza leyendo agent/agentcontainers/api.go, centrándote en dónde se modifica el binario del agente para añadir CAP_NET_ADMIN y en qué propiedades del contenedor están disponibles allí. Determina cómo se pueden identificar las configuraciones de contenedor no compatibles antes del intento. Se considera terminado cuando los contenedores compatibles conservan el comportamiento, mientras que los no compatibles evitan el intento y su advertencia.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- go
- Área
- devops, infrastructure
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100