From 3ba7560b4d304b4ee74a773ec40fb492a2b7f8ee Mon Sep 17 00:00:00 2001 From: Kang HuaiShuai Date: Tue, 5 Nov 2019 23:28:01 +0800 Subject: [PATCH] Add experimental Signed-off-by: Kang HuaiShuai --- SUMMARY.md | 1 + install/experimental.md | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 install/experimental.md diff --git a/SUMMARY.md b/SUMMARY.md index 6057f12..f3b2d3a 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -19,6 +19,7 @@ * [macOS](install/mac.md) * [Windows 10](install/windows.md) * [镜像加速器](install/mirror.md) + * [开启实验特性](install/experimental.md) * [使用镜像](image/README.md) * [获取镜像](image/pull.md) * [列出镜像](image/list.md) diff --git a/install/experimental.md b/install/experimental.md new file mode 100644 index 0000000..f4f6895 --- /dev/null +++ b/install/experimental.md @@ -0,0 +1,37 @@ +# 开启实验特性 + +一些 docker 命令或功能仅当 **实验特性** 开启时才能使用,请按照以下方法进行设置。 + +## 开启 Docker CLI 的实验特性 + +编辑 `~/.docker/config.json` 文件,新增如下条目 + +```json +{ + "experimental": "enabled" +} +``` + +或者通过设置环境变量的方式: + +**Linux/macOS** + +```bash +$ export DOCKER_CLI_EXPERIMENTAL=enabled +``` + +**Windows** + +```powershell +$ set $env:DOCKER_CLI_EXPERIMENTAL=enabled +``` + +## 开启 Dockerd 的实验特性 + +编辑 `/etc/docker/daemon.json`,新增如下条目 + +```json +{ + "experimental": true +} +```