Share feedback
Answers are generated based on the documentation.

docker sandbox network proxy

Description Manage proxy configuration for a sandbox
Usage docker sandbox network proxy <sandbox> [OPTIONS]

docker sandbox network proxy

概述

docker sandbox network proxy 命令用于管理 Docker 沙箱环境中的网络代理配置。

语法

docker sandbox network proxy [OPTIONS] COMMAND [ARG...]

选项

选项 描述
--help 显示帮助信息

子命令

create

创建一个新的沙箱网络代理。

docker sandbox network proxy create [OPTIONS] NAME

选项

选项 描述
--driver DRIVER 指定代理驱动类型
--config CONFIG 代理配置文件路径

inspect

查看沙箱网络代理的详细信息。

docker sandbox network proxy inspect [OPTIONS] PROXY

选项

选项 描述
--format FORMAT 输出格式(json、table 等)

ls

列出所有沙箱网络代理。

docker sandbox network proxy ls [OPTIONS]

选项

选项 描述
--quiet 仅显示代理名称

rm

删除一个或多个沙箱网络代理。

docker sandbox network proxy rm PROXY [PROXY...]

示例

  1. 创建一个名为 my-proxy 的沙箱网络代理:
docker sandbox network proxy create --driver http --config /path/to/config.json my-proxy
  1. 查看所有沙箱网络代理:
docker sandbox network proxy ls
  1. 查看特定代理的详细信息:
docker sandbox network proxy inspect my-proxy
  1. 删除沙箱网络代理:
docker sandbox network proxy rm my-proxy

Description

Manage proxy configuration for a sandbox

Options

Option Default Description
--allow-cidr Remove an IP range in CIDR notation from the block or bypass lists (can be specified multiple times)
--allow-host Permit access to a domain or IP (can be specified multiple times)
--block-cidr Block access to an IP range in CIDR notation (can be specified multiple times)
--block-host Block access to a domain or IP (can be specified multiple times)
--bypass-cidr Bypass proxy for an IP range in CIDR notation (can be specified multiple times)
--bypass-host Bypass proxy for a domain or IP (can be specified multiple times)
--policy Set the default policy