|
| 1 | +# Install & Uninstall Docker CE |
| 2 | + |
1 | 3 | ## install-docker-ce.ps1 |
2 | 4 |
|
3 | 5 | #### NAME |
|
143 | 145 | see the LICENSE.RTF on your install media or the root of your tools installation. |
144 | 146 | THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES. |
145 | 147 |
|
146 | | -#### Examples |
| 148 | +#### EXAMPLES |
147 | 149 |
|
148 | | - PS C:\>.\install-docker-ce.ps1 |
| 150 | + PS C:\> .\install-docker-ce.ps1 |
149 | 151 |
|
150 | | -#### Prerequisites |
| 152 | +#### PREREQUISITES |
151 | 153 | Requires PowerShell version 5.0 |
| 154 | + |
| 155 | +## uninstall-docker-ce.ps1 |
| 156 | + |
| 157 | +#### NAME |
| 158 | + uninstall-docker-ce.ps1 |
| 159 | + |
| 160 | +#### SYNOPSIS |
| 161 | + Uninstalls Docker Community Edition and removes related components |
| 162 | + |
| 163 | +#### SYNTAX |
| 164 | + uninstall-docker-ce.ps1 [-Force] [-KeepImages] [-KeepVolumes] [-KeepNetworks] |
| 165 | + |
| 166 | +#### DESCRIPTION |
| 167 | + Uninstalls Docker Community Edition from Windows, including the service, |
| 168 | + binaries, images, networks, containers, and volumes by default. |
| 169 | + |
| 170 | +#### PARAMETERS |
| 171 | + -Force [<SwitchParameter>] |
| 172 | + If specified, skips confirmation prompts and forces removal |
| 173 | + |
| 174 | + Required? false |
| 175 | + Position? named |
| 176 | + Default value false |
| 177 | + Accept pipeline input? false |
| 178 | + Accept wildcard characters? false |
| 179 | + |
| 180 | + -KeepImages [<SwitchParameter>] |
| 181 | + If specified, preserves images |
| 182 | + |
| 183 | + Required? false |
| 184 | + Position? named |
| 185 | + Default value false |
| 186 | + Accept pipeline input? false |
| 187 | + Accept wildcard characters? false |
| 188 | + |
| 189 | + -KeepVolumes [<SwitchParameter>] |
| 190 | + If specified, preserves volumes |
| 191 | + |
| 192 | + Required? false |
| 193 | + Position? named |
| 194 | + Default value false |
| 195 | + Accept pipeline input? false |
| 196 | + Accept wildcard characters? false |
| 197 | + |
| 198 | + -KeepNetworks [<SwitchParameter>] |
| 199 | + If specified, preserves custom networks |
| 200 | + |
| 201 | + Required? false |
| 202 | + Position? named |
| 203 | + Default value false |
| 204 | + Accept pipeline input? false |
| 205 | + Accept wildcard characters? false |
| 206 | + |
| 207 | +#### NOTES |
| 208 | + Copyright (c) Microsoft Corporation. All rights reserved. |
| 209 | + |
| 210 | + Use of this sample source code is subject to the terms of the Microsoft |
| 211 | + license agreement under which you licensed this sample source code. If |
| 212 | + you did not accept the terms of the license agreement, you are not |
| 213 | + authorized to use this sample source code. For the terms of the license, |
| 214 | + please see the license agreement between you and Microsoft or, if applicable, |
| 215 | + see the LICENSE.RTF on your install media or the root of your tools installation. |
| 216 | + THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES. |
| 217 | + |
| 218 | +#### EXAMPLES |
| 219 | + PS C:\> .\uninstall-docker-ce.ps1 |
| 220 | + Complete uninstall (removes everything: service, binaries, containers, volumes, images, networks, and data) |
| 221 | + |
| 222 | + PS C:\> .\uninstall-docker-ce.ps1 -Force |
| 223 | + Complete uninstall without confirmation prompts |
| 224 | + |
| 225 | + PS C:\> .\uninstall-docker-ce.ps1 -KeepImages |
| 226 | + Uninstall but preserve images |
| 227 | + |
| 228 | +#### PREREQUISITES |
| 229 | +Requires PowerShell version 5.0 and Administrator privileges |
0 commit comments