From 53ae8057085c187859a53b412e81191e990b7b7a Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 17 Sep 2020 20:21:10 +0200 Subject: [PATCH] chore: fixed devcontainer Docker usage (#3898) --- .devcontainer/devcontainer.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c6122ec55b..b6524c2c49 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,8 +1,11 @@ { "name": "Playwright", "image": "mcr.microsoft.com/playwright:next", - "postCreateCommand": "npm install && npm run build", + "postCreateCommand": "npm install && npm run build && apt-get update && apt-get install -y software-properties-common && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && add-apt-repository \"deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable\" && apt-get install -y docker-ce-cli", "settings": { "terminal.integrated.shell.linux": "/bin/bash" - } + }, + "runArgs": [ + "-v", "/var/run/docker.sock:/var/run/docker.sock" + ] } \ No newline at end of file