mirror of
				https://git.mirrors.martin98.com/https://github.com/docker/setup-docker-action
				synced 2025-11-01 07:41:08 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			54 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| [](https://github.com/crazy-max/ghaction-setup-docker/releases/latest)
 | |
| [](https://github.com/marketplace/actions/docker-setup-docker)
 | |
| [](https://github.com/crazy-max/ghaction-setup-docker/actions?workflow=ci)
 | |
| [](https://github.com/crazy-max/ghaction-setup-docker/actions?workflow=test)
 | |
| [](https://codecov.io/gh/crazy-max/ghaction-setup-docker)
 | |
| 
 | |
| ## About
 | |
| 
 | |
| GitHub Action to set up (download and install) [Docker CE](https://docs.docker.com/engine/).
 | |
| Works on Linux, macOS and Windows.
 | |
| 
 | |
| 
 | |
| 
 | |
| ___
 | |
| 
 | |
| * [Usage](#usage)
 | |
| * [Customizing](#customizing)
 | |
|   * [inputs](#inputs)
 | |
| * [Contributing](#contributing)
 | |
| 
 | |
| ## Usage
 | |
| 
 | |
| ```yaml
 | |
| name: ci
 | |
| 
 | |
| on:
 | |
|   push:
 | |
| 
 | |
| jobs:
 | |
|   docker:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       -
 | |
|         name: Set up Docker
 | |
|         uses: crazy-max/ghaction-setup-docker@v1
 | |
| ```
 | |
| 
 | |
| ## Customizing
 | |
| 
 | |
| ### inputs
 | |
| 
 | |
| Following inputs can be used as `step.with` keys
 | |
| 
 | |
| | Name      | Type   | Default               | Description                                                                                       |
 | |
| |-----------|--------|-----------------------|---------------------------------------------------------------------------------------------------|
 | |
| | `version` | String | `latest`              | Docker CE version (e.g., `v23.0.1`).                                                              |
 | |
| | `channel` | String | `stable`              | Docker CE [channel](https://download.docker.com/linux/static/) (e.g, `stable`, `edge` or `test`). |
 | |
| | `context` | String | `setup-docker-action` | Docker context name.                                                                              |
 | |
| 
 | |
| ## Contributing
 | |
| 
 | |
| Want to contribute? Awesome! You can find information about contributing to
 | |
| this project in the [CONTRIBUTING.md](/.github/CONTRIBUTING.md)
 | 
