upload uninstall script and docs
This PR adds a comprehensive PowerShell script to uninstall Docker Community Edition from Windows systems, addressing the need for a clean removal process.
## What's Added
### `uninstall-docker-ce.ps1` Script
A complete uninstall script that reverses the Docker CE installation by:
- **Service Management**: Stops and removes the Docker service registration
- **Binary Cleanup**: Removes `docker.exe` and `dockerd.exe` from System32
- **Data Management**: Cleans up Docker data directory and configuration files
- **Optional Components**:
- Preserves images, volumes, or networks
### Safety Features
- Administrator privilege validation
- Confirmation prompts for destructive operations
- `-Force` parameter to skip confirmations for automation
- `-Keep...` parameter to preserve images/volumes/networks (i.e. Docker data directory)
- Comprehensive error handling with informative warnings
### Parameters
```powershell
.\uninstall-docker-ce.ps1 [-Force] [-KeepImages] [-KeepVolumes] [-KeepNetworks]
```
### Usage Examples
```powershell
# Complete removal including images and networks
.\uninstall-docker-ce.ps1
# Automated uninstall without prompts
.\uninstall-docker-ce.ps1 -Force
# Uninstall but keep Docker data
.\uninstall-docker-ce.ps1 -KeepImages
```
## Documentation Updates
- Updated `Install-DockerCE/README.md` with complete documentation for the uninstall script
## Design Principles
The script follows the same patterns and coding style as the existing `install-docker-ce.ps1`, ensuring consistency and maintainability. It includes proper error handling, user feedback, and follows PowerShell best practices.
Fixes #545.
合并状态:已合并 合并于 2025-09-04 关闭于 2025-09-04 4 条评论