跳到正文

Docker ​

The Docker provider for Pulumi can be used to provision any of the resources available in Docker.

See the full API documentation for complete details of the available Docker provider APIs.

Setup ​

The Docker provider supports several options for interacting with Docker. See the Docker setup page for details.

Example ​

typescript
import * as docker from "@pulumi/docker";

const image = new docker.RemoteImage("ubuntu", {
  name: "ubuntu:precise"
});

const container = new docker.Container("ubuntu", {
  image: image.latest,
});

Libraries ​

The following packages are available in packager managers:

The Docker provider is open source and available in the pulumi/pulumi-docker repo.

文档内容翻译自 Pulumi 官方文档。