@@ -28,10 +28,7 @@
|
|||||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
// "forwardPorts": [8080],
|
// "forwardPorts": [8080],
|
||||||
|
|
||||||
// Use 'postCreateCommand' to run commands after the container is created.
|
// Use 'portsAttributes' to set default properties for specific forwarded ports. More info: https://code.visualstudio.com/docs/remote/devcontainerjson-reference.
|
||||||
// "postCreateCommand": "sudo chmod a+x \"$(pwd)\" && sudo rm -rf /var/www/html && sudo ln -s \"$(pwd)\" /var/www/html"
|
|
||||||
|
|
||||||
// Use 'portsAttributes' to set default properties for specific forwarded ports.
|
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"8000": {
|
"8000": {
|
||||||
"label": "Hello Remote World",
|
"label": "Hello Remote World",
|
||||||
@@ -39,6 +36,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Use 'otherPortsAttributes' to configure any ports that aren't configured using 'portsAttributes'.
|
||||||
|
// "otherPortsAttributes": {
|
||||||
|
// "onAutoForward": "silent"
|
||||||
|
// },
|
||||||
|
|
||||||
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||||||
|
// "postCreateCommand": "sudo chmod a+x \"$(pwd)\" && sudo rm -rf /var/www/html && sudo ln -s \"$(pwd)\" /var/www/html"
|
||||||
|
|
||||||
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
||||||
"remoteUser": "vscode"
|
"remoteUser": "vscode"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user