Using a Docker image as a build environment
Bitbucket Pipelines uses a Docker image as a platform to execute the commands found in bitbucket-pipelines.yml
. This image is normally a default provided by Atlassian but can be replaced with a custom image.
Let’s examine how Bitbucket Pipelines uses these Docker images.
Getting ready
In Bitbucket Pipelines, the runner executes the commands specified on bitbucket-pipelines.yml
in a build environment. This build environment always uses a Docker container.
If a Docker image isn’t specified, Bitbucket Pipelines will select a default Docker image for the container.
Default images used by Bitbucket Pipelines are stored by Atlassian in Docker Hub at https://hub.docker.com/r/atlassian/default-image/.
Version numbers for the default image can be specified. If no version number is specified, the version specified with the latest tag will be used.
The following table provides a synopsis of the default image versions...