This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/docs/reference/docker
Sam Alba 7e43838f98 docs: updated generated content
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2021-11-02 13:32:10 -07:00
..
compose.md stdlib: docker: clean up docker.#Command inputs 2021-10-12 17:10:46 -07:00
README.md docs: updated generated content 2021-11-02 13:32:10 -07:00

sidebar_label
docker

alpha.dagger.io/docker

Docker container operations

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

No output.

docker.#Load

Load a docker image into a docker engine

docker.#Load Inputs

Name Type Description
tag string Name and optionally a tag in the 'name:tag' format
source dagger.#Artifact Image source

docker.#Load Outputs

Name Type Description
id string Image ID

docker.#Pull

Pull a docker container

docker.#Pull Inputs

Name Type Description
from string Remote 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

Name Type Description
target string Remote target (example: "index.docker.io/alpine:latest")
source dagger.#Artifact Image source

docker.#Push Outputs

Name Type Description
ref string Image ref
digest string Image digest

docker.#Run

docker.#Run Inputs

Name Type Description
ref string Image reference (e.g: nginx:alpine)
recreate *true | bool Recreate container?
run.env.IMAGE_REF string -

docker.#Run Outputs

No output.