Share feedback
Answers are generated based on the documentation.

sbx policy allow

DescriptionAdd an allow rule for sandboxes
Usagesbx policy allow COMMAND

Description

Add a rule that permits sandboxes to access specified resources.

Allowed resources are accessible within the selected policy scope. If a resource matches both an allow and a deny rule, the deny rule takes precedence.

Without --cloud, a rule is refused, and nothing is added, when the same scope already holds the opposite decision for the same resource on any of the same protocols (for HTTP rules, the same methods, path, and query constraints). Remove the existing rule with "sbx policy rm network --id RULE_ID" first, adding --sandbox SANDBOX if the rule is sandbox-scoped. Rules in different scopes, such as a global allow and a sandbox-scoped deny, can coexist, and the deny rule takes precedence. Rules from your organization's policy never cause this refusal. With --cloud, the new rule replaces the opposite rule in the same scope instead.

Commands

CommandDescription
sbx policy allow networkAllow network access to specified hosts

Global options

OptionDefaultDescription
--cloudDispatch to Docker Cloud Sandboxes API instead of local sandboxd (supported by a growing set of verbs — run 'sbx --cloud --help' for the current list)
-D, --debugEnable debug logging
--no-inputNever prompt; commands that need an answer fail with the command to run instead