You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Control automatic port forwarding with a devcontainer.json file
devcontainer.json has a system for specifying default behavior for
forwarding ports, and also behavior for specific ports and ranges of
ports. Its schema is essentially identical to the settings VS Code uses
to control port forwarding, so supporting this format for port settings
keeps things consistent between VS Code and JetBrains.
See https://containers.dev/implementors/json_reference/ for the spec.
As an example, this will turn off automatic port forwarding except for
ports 7123 and 8100-8150:
{
"otherPortsAttributes": {
"onAutoForward": "ignore"
},
"portsAttributes": {
"7123": {
"onAutoForward": "notify"
},
"8100-8150": {
"onAutoForward": "notify"
}
}
}
Fixes: #38
0 commit comments