Docker · Arazzo Workflow
Docker Pull an Image and Run a Container
Version 1.0.0
Pull an image from a registry, create a container from it, start it, and read back its running state.
Provider
Workflows
run-container
Pull an image, create and start a container from it, and confirm it is running.
Pulls the image tag, creates a named container with the supplied command and environment, starts it, and inspects the result so the caller ends up with a container id and a confirmed running state.
1
pullImage
ImageCreate
Pull the requested image and tag from the registry into the daemon's local image store so the container can be created from it.
2
inspectImage
ImageInspect
Confirm the pulled image is present in the local store and capture its id before creating a container from it.
3
createContainer
ContainerCreate
Create a container from the pulled image with the supplied name, command and environment. The container is created but not yet started.
4
startContainer
ContainerStart
Start the newly created container. The daemon returns 204 on success and 304 if the container was already started.
5
confirmRunning
ContainerInspect
Read back the container's low-level state to confirm the daemon reports it running, and capture the state and network settings for the caller.