---
sidebar_label: docker
# alpha.dagger.io/docker
Docker container operations
```cue
import "alpha.dagger.io/docker"
```
## docker.#Build
Build a Docker image from source
### docker.#Build Inputs
| Name | Type | Description |
| ------------- |:-------------: |:-------------: |
|*source* | `dagger.#Artifact` |Build context |
|*dockerfile* | `*null \| string` |Dockerfile passed as a string |
### docker.#Build Outputs
_No output._
## docker.#Command
A container image that can run any docker command
### docker.#Command Inputs
_No input._
### docker.#Command Outputs
## docker.#Load
Load a docker image into a docker engine
### docker.#Load Inputs
|*tag* | `string` |Name and optionally a tag in the 'name:tag' format |
|*source* | `dagger.#Artifact` |Image source |
### docker.#Load Outputs
|*id* | `string` |Image ID |
## docker.#Pull
Pull a docker container
### docker.#Pull Inputs
|*from* | `string` |Remote ref (example: "index.docker.io/alpine:latest") |
### docker.#Pull Outputs
## docker.#Push
Push a docker image to a remote registry
### docker.#Push Inputs
|*target* | `string` |Remote target (example: "index.docker.io/alpine:latest") |
### docker.#Push Outputs
|*ref* | `string` |Image ref |
|*digest* | `string` |Image digest |
## docker.#Run
### docker.#Run Inputs
|*ref* | `string` |Image reference (e.g: nginx:alpine) |
|*recreate* | `*true \| bool` |Recreate container? |
|*run.env.IMAGE_REF* | `string` |- |
### docker.#Run Outputs