Skip to content

Commit bf9e3bf

Browse files
authored
Add note that docker builds are not always protected by ECI. (#19900)
* Add note that docker build are not always protected by ECI. Signed-off-by: Cesar Talledo <[email protected]> * Add ECI limitations to TOC. Signed-off-by: Cesar Talledo <[email protected]> --------- Signed-off-by: Cesar Talledo <[email protected]>
1 parent 2c8131d commit bf9e3bf

File tree

3 files changed

+33
-5
lines changed

3 files changed

+33
-5
lines changed

content/desktop/hardened-desktop/enhanced-container-isolation/limitations.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,24 @@ and it's an excellent way for users to run their favorite Linux distro on
5656
Windows hosts and access Docker from within (see Docker Desktop's WSL distro
5757
integration feature, enabled via the Dashboard's **Settings** > **Resources** > **WSL Integration**).
5858

59+
### Docker Builds with the "Docker" driver are not protected by ECI
60+
61+
Prior to Docker Desktop 4.30, `docker build` commands that use the buildx
62+
`docker` driver (the default) are not protected by ECI (i.e., the build runs
63+
rootful inside the Docker Desktop VM).
64+
65+
Starting with Docker Desktop 4.30, `docker build` commands that use the buildx
66+
`docker` driver are protected by ECI (i.e., the build runs rootless inside
67+
the Docker Desktop VM), except when Docker Desktop is configured to use WSL 2
68+
(on Windows hosts). We expect to improve on this in future versions of Docker
69+
Desktop.
70+
71+
Note that `docker build` commands that use the `docker-container` driver are
72+
always protected by ECI (i.e., the build runs inside a rootless Docker
73+
container). This is true since Docker Desktop 4.19 (when ECI was introduced) and
74+
on all platforms where Docker Desktop is supported (Windows with WSL or Hyper-V,
75+
Mac, and Linux).
76+
5977
### Docker Build and Buildx have some restrictions
6078

6179
With ECI enabled, Docker build `--network=host` and Docker Buildx entitlements

content/security/faqs/eci-faq.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,19 @@ See [ECI Docker socket mount permissions](../../desktop/hardened-desktop/enhance
6767
### Does ECI protect all containers launched with Docker Desktop?
6868

6969
Not yet. It protects all containers launched by users via `docker create` and
70-
`docker run`. In addition, it protects containers implicitly used by `docker build`, when
71-
using the [docker-container build driver](../../build/drivers/_index.md).
70+
`docker run`.
7271

73-
It does not yet protect containers implicitly used by `docker build` with the
74-
`docker` build driver, nor Docker Desktop Kubernetes pods, Extension containers,
72+
Prior to Docker Desktop 4.30, it did not protect containers implicitly used by
73+
`docker build` with the `docker` build driver (the default driver). Starting
74+
with Docker Desktop 4.30, it protects such containers, except for Docker Desktop
75+
on WSL 2 (Windows hosts).
76+
77+
Note that ECI always protects containers used by `docker build`, when using the
78+
[docker-container build driver](../../build/drivers/_index.md), since Docker
79+
Desktop 4.19 and on all supported platforms (Windows with WSL 2 or Hyper-V, Mac,
80+
and Linux).
81+
82+
ECI does not yet protect Docker Desktop Kubernetes pods, Extension containers,
7583
and [Dev Environments containers](../../desktop/dev-environments/_index.md).
7684

7785
### Does ECI protect containers launched prior to enabling ECI?

data/toc.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ Manuals:
11161116
section:
11171117
- path: /desktop/
11181118
title: Overview
1119-
- sectiontitle: Install
1119+
- sectiontitle: Install
11201120
section:
11211121
- path: /desktop/install/mac-install/
11221122
title: Mac
@@ -1178,6 +1178,8 @@ Manuals:
11781178
title: Key features and benefits
11791179
- path: /desktop/hardened-desktop/enhanced-container-isolation/config/
11801180
title: Advanced configuration options
1181+
- path: /desktop/hardened-desktop/enhanced-container-isolation/limitations/
1182+
title: Limitations
11811183
- sectiontitle: Dev Environments (Beta)
11821184
section:
11831185
- path: /desktop/dev-environments/

0 commit comments

Comments
 (0)