diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3874899..32dd4f4 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -11,7 +11,7 @@ "NODE_EXTRA_CA_CERTS": "/usr/local/share/ca-certificates/sophos.crt" }, // Add bash_history - "mounts": [ + "mounts": [ "source=projectname-bashhistory,target=/commandhistory,type=volume" ], // Configure tool-specific properties. @@ -24,11 +24,14 @@ "ms-azuretools.vscode-docker" ] } - } + }, // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [3000, 27017], // Use 'postCreateCommand' to run commands after the container is created. // "postCreateCommand": "yarn install", + "postCreateCommand": { + "Fix Volume Permissions": "sudo chown -R $(whoami): /commandhistory" + } // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. // "remoteUser": "root" } \ No newline at end of file