Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Codespaces: Fix permissions for talking to docker daemon

Kilian Lieret89beb9ed36b8
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 25c8c534..5a112b81 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -9,7 +9,7 @@
"ms-azuretools.vscode-docker",
"ms-toolsai.jupyter"
],
- "postCreateCommand": "conda env create -f environment.yml && conda activate swe-agent",
+ "postCreateCommand": "sudo usermod -aG docker vscode && sudo chmod 666 /var/run/docker.sock && conda env create -f environment.yml && conda activate swe-agent",
"features": {
"docker-in-docker": "latest"
},