Skip to main content

alpha.dagger.io/docker

Docker container operations

import "alpha.dagger.io/docker"

docker.#Build

Build a Docker image from source

docker.#Build Inputs

NameTypeDescription
sourcedagger.#ArtifactBuild context
dockerfile*null \| stringDockerfile 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

No output.

docker.#Load

Load a docker image into a docker engine

docker.#Load Inputs

NameTypeDescription
tagstringName and optionally a tag in the 'name:tag' format
sourcedagger.#ArtifactImage source

docker.#Load Outputs

NameTypeDescription
idstringImage ID

docker.#Pull

Pull a docker container

docker.#Pull Inputs

NameTypeDescription
fromstringRemote ref (example: "index.docker.io/alpine:latest")

docker.#Pull Outputs

No output.

docker.#Push

Push a docker image to a remote registry

docker.#Push Inputs

NameTypeDescription
targetstringRemote target (example: "index.docker.io/alpine:latest")
sourcedagger.#ArtifactImage source

docker.#Push Outputs

NameTypeDescription
refstringImage ref
digeststringImage digest

docker.#Run

docker.#Run Inputs

NameTypeDescription
refstringImage reference (e.g: nginx:alpine)
recreate*true \| boolRecreate container?
run.env.IMAGE_REFstring-

docker.#Run Outputs

No output.