Skip to content

Conversation

@aevesdocker
Copy link
Contributor

@aevesdocker aevesdocker commented Sep 29, 2022

Fixes merge issues in #15671

@aevesdocker aevesdocker changed the title Aevesdocker eci dm Hardened Desktop and Admin Controls Sep 29, 2022
@netlify
Copy link

netlify bot commented Sep 29, 2022

Deploy Preview for docsdocker ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 5035582
🔍 Latest deploy log https://app.netlify.com/sites/docsdocker/deploys/63357b0e45ab97000842661d
😎 Deploy Preview https://deploy-preview-15775--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@craig-osterhout craig-osterhout added the area/desktop Issue affects a desktop edition of Docker. E.g docker for mac label Sep 29, 2022
Enhanced Container Isolation does not currently work when Docker Desktop runs on Windows with WSL/WSL2. This is due to some limitations of the WSL/WSL2 Linux Kernel. As a result, to use Enhanced Container Isolation on Windows, you must configure Docker Desktop to use Hyper-V. This can be enforced using Admin Controls. For more information, see [Admin Controls](../admin-controls/index.md).

#### Kubernetes pods and extension containers are not yet protected
When Enhanced Container Isolation is enabled, Kubernetes pods and extension containers are not yet protected. A malicious or privileged pod or extension container can compromise the Docker Desktop Linux VM and bypass security controls.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dev-environments is another category not being protected (for now).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @ctalledo is covering this in his doc additions

Copy link
Contributor

@dvdksn dvdksn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work @aevesdocker -- I only have minor comments/suggestions.

PS: I think the image at /desktop/images/admin-settings.PNG can be removed?

Copy link
Contributor

@ctalledo ctalledo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: please fix Windows path for admin-settings.json file.

Copy link
Contributor

@ctalledo ctalledo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some more suggestions for ECI (though it's looking pretty good already!)

- On an existing install, developers need to quit Docker Desktop through the Docker menu, and then relaunch Docker Desktop and sign in to receive the changed settings.
>**Important**
>
>Selecting **Restart** from the Docker menu isn't enough as it only restarts some components of Docker Desktop.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB: this is a design choice, we can change this if we think UX is not intuitive.
But as far as changing admin settings must not interrupt the developer workflow, I think it's works fine like that. WDYT @ctalledo

Without Enhanced Container Isolation, Docker Desktop has Docker Engine run as root with full capabilities inside a container that shares almost all namespaces with the Linux VM’s root user. Whilst this provides strong isolation between containers and the underlying host machine, it gives the container access to all the VM’s kernel resources and does not prevent Docker Desktop users from launching a container that runs as root in the Docker Desktop Linux VM, or from using insecure privileged containers. This brings Docker Desktop users closer to gaining privileged access to the underlying host.

### How is this different to rootless mode in Docker Engine?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am assuming we will add something here, or remove the header?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Waiting for Cesar's additions.

ebriney
ebriney previously approved these changes Oct 19, 2022
Copy link
Contributor

@dvdksn dvdksn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nå kjører vi!

@aevesdocker aevesdocker merged commit 173c903 into docker:master Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/desktop Issue affects a desktop edition of Docker. E.g docker for mac

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants