You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/manuals/desktop/setup/install/windows-install.md
+56-17Lines changed: 56 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,13 +36,29 @@ This page provides download links, system requirements, and step-by-step install
36
36
37
37
_For checksums, see [Release notes](/manuals/desktop/release-notes.md)_
38
38
39
+
## Installation modes
40
+
41
+
Docker Desktop supports two installation modes. Per-user installation (Beta) is recommended for most users. It does not require administrator privileges to install or update, and the WSL 2 backend it uses covers the needs of the vast majority of Docker Desktop users.
| Registry keys | Current User (HKCU) | Local Machine (HKLM) |
47
+
| Admin rights to install | Not required | Required |
48
+
| Admin rights to update | Not required | Required |
49
+
| Linux containers backend | WSL 2 only | WSL 2 or Hyper-V |
50
+
| Windows containers | Not supported | Supported |
51
+
| Security | Smaller attack surface; no privileged system service installed | Requires privileged system service; broader access to host resources |
52
+
53
+
For more information, see [Understand permission requirements for Windows](windows-install.md).
54
+
39
55
## System requirements
40
56
41
57
> [!TIP]
42
58
>
43
59
> **Should I use Hyper-V or WSL?**
44
60
>
45
-
> Docker Desktop's functionality remains consistent on both WSL and Hyper-V, without a preference for either architecture. Hyper-V and WSL have their own advantages and disadvantages, depending on your specific setup and your planned use case.
61
+
> Docker Desktop's functionality remains consistent on both WSL and Hyper-V, without a preference for either architecture. Hyper-V and WSL have their own advantages and disadvantages, depending on your specific setup and your planned use case. Note that Hyper-V is only available with all-users installation. If you install Docker Desktop in per-user mode, WSL 2 is the only supported backend.
46
62
47
63
{{< tabs >}}
48
64
{{< tab name="WSL 2 backend, x86_64" >}}
@@ -131,7 +147,11 @@ For more information, see [Running Docker Desktop in a VM or VDI environment](/m
131
147
132
148
1. Download the installer using the download button at the top of the page, or from the [release notes](/manuals/desktop/release-notes.md).
133
149
134
-
2. Double-click `Docker Desktop Installer.exe` to run the installer. By default, Docker Desktop is installed at `C:\Program Files\Docker\Docker`.
150
+
2. Double-click `Docker Desktop Installer.exe` to run the installer. The installer will ask which installation mode you prefer. Choosing per-user installs to `%LOCALAPPDATA%\Programs\DockerDesktop` and requires no administrator privileges. Choosing all users will prompt for elevation.
151
+
152
+
> [!NOTE]
153
+
>
154
+
>If you want to switch installation mode at a later date, you need to uninstall and reinstall Docker Desktop.
135
155
136
156
3. When prompted, ensure the **Use WSL 2 instead of Hyper-V** option on the Configuration page is selected or not depending on your choice of backend.
137
157
@@ -143,43 +163,54 @@ For more information, see [Running Docker Desktop in a VM or VDI environment](/m
143
163
144
164
6.[Start Docker Desktop](#start-docker-desktop).
145
165
146
-
If your administrator account is different to your user account, you must add the user to the **docker-users** group to access features that require higher privileges, such as creating and managing the Hyper-V VM, or using Windows containers:
166
+
### Install from the command line
147
167
148
-
1. Run **Computer Management** as an **administrator**.
149
-
2. Navigate to **Local Users and Groups** > **Groups** > **docker-users**.
150
-
3. Right-click to add the user to the group.
151
-
4. Sign out and sign back in for the changes to take effect.
168
+
After downloading `Docker Desktop Installer.exe`, run the following command in a terminal to install Docker Desktop to `%LOCALAPPDATA%\Programs\DockerDesktop`.
152
169
153
-
### Install from the command line
170
+
For per-user installation, run:
154
171
155
-
After downloading `Docker Desktop Installer.exe`, run the following command in a terminal to install Docker Desktop:
172
+
```console
173
+
$ "Docker Desktop Installer.exe" install --user
174
+
```
156
175
176
+
To install for all users on the machine (requires administrator privileges):
By default, Docker Desktop is installed at `C:\Program Files\Docker\Docker`.
174
-
175
-
If your administrator account is different to your user account, you must add the user to the **docker-users** group to access features that require higher privileges, such as creating and managing the Hyper-V VM, or using Windows containers.
202
+
If using all-users installation and your administrator account is different to your user account, you must add the user to the **docker-users** group to access features that require higher privileges, such as creating and managing the Hyper-V VM, or using Windows containers:
176
203
177
204
```console
178
205
$ net localgroup docker-users <user> /add
179
206
```
180
207
181
208
See the [Installer flags](#installer-flags) section to see what flags the `install` command accepts.
182
209
210
+
> [!NOTE]
211
+
>
212
+
>If you want to switch installation mode at a later date, you need to uninstall and reinstall Docker Desktop.
213
+
183
214
## Start Docker Desktop
184
215
185
216
Docker Desktop does not start automatically after installation. To start Docker Desktop:
@@ -249,6 +280,8 @@ If Microsoft Store access is blocked due to security policies:
249
280
250
281
#### Installation behavior
251
282
283
+
284
+
- `--user`: Installs Docker Desktop in per-user mode, to `%LOCALAPPDATA%\Programs\DockerDesktop`. No administrator privileges are required. This is the recommended mode for most users. See [Installation modes](#installation-modes).
252
285
- `--quiet`: Suppresses information output when running the installer
253
286
- `--accept-license`: Accepts the [Docker Subscription Service Agreement](https://www.docker.com/legal/docker-subscription-service-agreement) now, rather than requiring it to be accepted when the application is first run
254
287
- `--installation-dir=<path>`: Changes the default installation location (`C:\Program Files\Docker\Docker`)
@@ -293,13 +326,19 @@ If Microsoft Store access is blocked due to security policies:
293
326
294
327
### Administrator privileges
295
328
296
-
Installing Docker Desktop requires administrator privileges. However, once installed, it can be used without administrative access. Some actions, though, still need elevated permissions. See [Understand permission requirements for Windows](./windows-permission-requirements.md) for more detail.
329
+
In per-user mode, Docker Desktop can be installed and updated without administrator privileges. Some settings still require elevation and are marked **Requires password** in the Settings UI. Enabling WSL 2 for the first time also requires administrator privileges, but this is a one-time, per-machine operation.
330
+
331
+
In all-users mode, installing Docker Desktop requires administrator privileges. However, once installed, it can be used without administrative access. Some actions, though, still need elevated permissions. See [Understand permission requirements for Windows](./windows-permission-requirements.md) for more detail.
297
332
298
333
See the [FAQs](/manuals/desktop/troubleshoot-and-support/faqs/general.md#how-do-i-run-docker-desktop-without-administrator-privileges) on how to install and run Docker Desktop without needing administrator privileges.
299
334
300
335
If you're an IT admin and your users do not have administrator rights and plan to perform operations that require elevated privileges, be sure to install Docker Desktop using the `--always-run-service` installer flag. This ensures those actions can still be executed without prompting for User Account Control (UAC) elevation. See [Installer Flags](#installer-flags) for more detail.
301
336
302
-
### Windows containers
337
+
### Windows containers
338
+
339
+
> [!NOTE]
340
+
>
341
+
> Windows containers are only supported in all-users installation mode. They are not available when Docker Desktop is installed per-user.
303
342
304
343
From the Docker Desktop menu, you can toggle which daemon (Linux or Windows)
305
344
the Docker CLI talks to. Select **Switch to Windows containers** to use Windows
Copy file name to clipboardExpand all lines: content/manuals/desktop/setup/install/windows-permission-requirements.md
+39-8Lines changed: 39 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,28 +12,55 @@ weight: 40
12
12
13
13
This page contains information about the permission requirements for running and installing Docker Desktop on Windows, the functionality of the privileged helper process `com.docker.service`, and the reasoning behind this approach.
14
14
15
-
It also provides clarity on running containers as `root` as opposed to having `Administrator` access on the host and the privileges of the Windows Docker engine and Windows containers.
15
+
It also provides clarity on running containers as `root` as opposed to having `Administrator` access on the host and the privileges of Docker Engine and Windows containers.
16
16
17
17
Docker Desktop on Windows is designed with security in mind. Administrative rights are only required when absolutely necessary.
18
18
19
19
## Permission requirements
20
20
21
-
While Docker Desktop on Windows can be run without having `Administrator` privileges, it does require them during installation. On installation you receive a UAC prompt which allows a privileged helper service to be installed. After that, Docker Desktop can be run without administrator privileges.
22
-
23
-
Running Docker Desktop on Windows without the privileged helper does not require users to have `docker-users` group membership. However,
24
-
some features that require privileged operations will have this requirement.
25
-
26
-
If you performed the installation, you are automatically added to this group, but other users must be added manually. This allows the administrator to control who has access to features that require higher privileges, such as creating and managing the Hyper-V VM, or using Windows containers.
27
-
21
+
The permissions required to install and run Docker Desktop depend on which [installation mode](/manuals/desktop/setup/install/windows-install.md#installation-modes) you use.
22
+
23
+
### Per-user installation (Beta)
24
+
25
+
In per-user mode, Docker Desktop installs to `%LOCALAPPDATA%\Programs\DockerDesktop` and writes only to current-user registry keys (`HKCU`). This means:
26
+
27
+
- No administrator privileges are required to install or update Docker Desktop.
28
+
- After installation, Docker Desktop can be run without administrator privileges.
29
+
- Some settings marked **Requires password** in **Settings** still require elevation. When you change one of these settings and select **Apply**, Docker Desktop opens a UAC prompt for administrator access.
30
+
31
+
Per-user installation does not install the privileged helper service `com.docker.service` automatically. As a result, features that depend on it, such as the Hyper-V backend and Windows containers, are not available. For most users this is not a limitation, as the WSL 2 backend covers the majority of use cases.
32
+
33
+
### All-users installation
34
+
35
+
In all-users mode, Docker Desktop installs to `C:\Program Files\Docker\Docker` and writes to Local Machine registry keys (`HKLM`). Both locations require administrator privileges to modify, so:
36
+
37
+
- Administrator privileges are required to install and update Docker Desktop.
38
+
- On installation you receive a UAC prompt which allows the privileged helper service `com.docker.service` to be installed.
39
+
- After installation, Docker Desktop can be run without administrator privileges.
40
+
41
+
Running Docker Desktop without the privileged helper does not require users to have `docker-users` group membership. However, some features that require privileged operations will have this requirement.
42
+
43
+
If you performed the installation, you are automatically added to the `docker-users` group, but other users must be added manually. This allows the administrator to control who has access to features that require higher privileges, such as creating and managing the Hyper-V VM, or using Windows containers.
44
+
28
45
When Docker Desktop launches, all non-privileged named pipes are created so that only the following users can access them:
29
46
- The user that launched Docker Desktop.
30
47
- Members of the local `Administrators` group.
31
48
- The `LOCALSYSTEM` account.
49
+
50
+
### Operations that always require elevation
51
+
52
+
The following require administrator privileges regardless of installation mode.
53
+
54
+
- Enabling WSL 2 for the first time: WSL 2 must be enabled on the machine before Docker Desktop can run. This is a one-time, per-machine operation. Once WSL 2 is enabled, it does not need to be enabled again for subsequent Docker Desktop installs or updates.
55
+
- Settings marked **Requires password**: Certain Docker Desktop settings affect system-level configuration and require administrator credentials to apply. These are clearly marked **Requires password**. When you change one of these settings and select **Apply**, Docker Desktop prompts for administrator credentials.
32
56
33
57
## Privileged helper
34
58
35
59
Docker Desktop needs to perform a limited set of privileged operations which are conducted by the privileged helper process `com.docker.service`. This approach allows, following the principle of least privilege, `Administrator` access to be used only for the operations for which it is absolutely necessary, while still being able to use Docker Desktop as an unprivileged user.
36
60
61
+
> [!NOTE]
62
+
>
63
+
> `com.docker.service` is only installed in all-users installation mode. It is not used in per-user installation, which instead relies solely on the WSL 2 backend and does not support Hyper-V or Windows containers.
37
64
38
65
The privileged helper `com.docker.service` is a Windows service which runs in the background with `SYSTEM` privileges. It listens on the named pipe `//./pipe/dockerBackendV2`. The developer runs the Docker Desktop application, which connects to the named pipe and sends commands to the service. This named pipe is protected, and only users that are part of the `docker-users` group can have access to it.
39
66
@@ -84,6 +111,10 @@ isolated from the Docker daemon and other services running inside the VM.
84
111
>
85
112
> Enabling Windows containers has important security implications.
86
113
114
+
> [!NOTE]
115
+
>
116
+
> Windows containers are only supported in all-users installation mode. They are not available when Docker Desktop is installed per-user. See [Installation modes](/manuals/desktop/setup/install/windows-install.md#installation-modes).
117
+
87
118
Unlike the Linux Docker Engine and containers which run in a VM, Windows containers are implemented using operating system features, and run directly on the Windows host. If you enable Windows containers during installation, the `ContainerAdministrator` user used for administration inside the container is a local administrator on the host machine. Enabling Windows containers during installation makes it so that members of the `docker-users` group are able to elevate to administrators on the host. For organizations who don't want their developers to run Windows containers, a `-–no-windows-containers` installer flag is available to disable their use.
After the diagnostics have finished, the terminal displays your diagnostics ID and the path to the diagnostics file. The diagnostics ID is composed of your user ID and a timestamp. For example `BE9AFAAF-F68B-41D0-9D12-84760E6B8740/20190905152051`.
Copy file name to clipboardExpand all lines: content/manuals/desktop/use-desktop/kubernetes.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ With Docker Desktop version 4.51 and later, you can manage Kubernetes directly f
28
28
4. Optional: Select **Show system containers (advanced)** to view internal containers when using Docker commands.
29
29
5. Select **Create**.
30
30
31
-
This sets up the images required to run the Kubernetes server as containers, and installs the `kubectl` command-line tool on your system at `/usr/local/bin/kubectl` (Mac) or `C:\Program Files\Docker\Docker\resources\bin\kubectl.exe` (Windows). If you installed `kubectl` using Homebrew, or by some other method, and experience conflicts, remove `/usr/local/bin/kubectl`.
31
+
This sets up the images required to run the Kubernetes server as containers, and installs the `kubectl` command-line tool on your system at `/usr/local/bin/kubectl` (Mac) or `C:\Program Files\Docker\Docker\resources\bin\kubectl.exe`(all-user installations) or `%LOCALAPPDATA%\Programs\DockerDesktop\resources\bin\kubectl.exe` (per-user installations) (Windows). If you installed `kubectl` using Homebrew, or by some other method, and experience conflicts, remove `/usr/local/bin/kubectl`.
Copy file name to clipboardExpand all lines: content/manuals/enterprise/enterprise-deployment/faq.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,12 @@ Common questions about installing Docker Desktop using the MSI installer.
20
20
Users must [uninstall](/manuals/desktop/uninstall.md) older `.exe` installations before using the new MSI version. The `.exe` installer includes a `-keep-data` flag that removes Docker Desktop while preserving underlying resources such as the container VMs:
0 commit comments