Start Building for Free
  • cimg/go
  • Getting Started
  • How This Image Works
  • Image Tags
  • Variants
    • Node.js
    • Browsers
  1. Convenience Images
  2. cimg/go



This image is designed to supercede the legacy CircleCI Go image, circleci/golang.

cimg/go is a Docker image created by CircleCI with continuous integration builds in mind. Each tag contains a complete Go version and toolchain, the testing wrapper gotestsum, and any binaries and tools that are required for builds to complete successfully in a CircleCI environment.

Getting Started

This image can be used with the CircleCI docker executor. For example:

1 2 3 4 5 6 7 jobs: build: docker: - image: cimg/go:1.22.5 steps: - checkout - run: go version

In the above example, the CircleCI Go Docker image is used for the primary container. More specifically, the tag 1.22.5 is used meaning the version of Go will be Go v1.22.5. You can now use Go within the steps for this job.

How This Image Works

This image contains the Go programming language and its complete toolchain. This includes support for Go modules, the official Go Proxy Server, etc.

Tagging Scheme

This image has the following tagging scheme:


<go-version> - The version of Go to use. This can be a full SemVer point release (such as 1.12.7) or just the minor release (such as 1.12). If you use the minor release tag, it will automatically point to future patch updates as they are released by the Go Team. For example, the tag 1.13 points to Go v1.13 now, but when the next release comes out, it will point to Go v1.13.1.

[-variant] - Variant tags, if available, can optionally be used. Once the Node.js variant is available, it could be used like this: cimg/go:1.13-node.

Image Tags


Variant images typically contain the same base software, but with a few additional modifications.


The Node.js variant is the same Go image but with Node.js also installed. The Node.js variant will be used by appending -node to the end of an existing cimg/go tag.

1 2 3 4 5 6 7 8 jobs: build: docker: - image: cimg/go:1.22.5-node steps: - checkout - run: go version - run: node --version


The browsers variant is the same Go image but with Node.js, Java, Selenium, and browser dependencies pre-installed via apt. The browsers variant can be used by appending -browser to the end of an existing cimg/go tag. The browsers variant is designed to work in conjunction with the CircleCI Browser Tools orb. You can use the orb to install a version of Google Chrome and/or Firefox into your build. The image contains all of the supporting tools needed to use both the browser and its driver.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 orbs: browser-tools: circleci/browser-tools@1.1 jobs: build: docker: - image: cimg/go:1.13-browsers steps: - browser-tools/install-browser-tools - checkout - run: | go version node --version java --version google-chrome --version
Developer Updates
Get tips to optimize your builds
Or join our research panel and give feedback
By submitting this form, you are agreeing to ourTerms of UseandPrivacy Policy.