Go is an open source programming language to produce simple, efficient and reliable software.
10K+
ubuntu/go is a rock for go maintained by Canonical.
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
This contains a minimal Go toolchain which can be used to build a wide variety of Go applications. It also includes a minimal GCC toolchain to build the Go applications that have C dependencies.
Any additional dependencies can be either mounted at runtime or installed with the apt installation included in this rock.
NOTE: These tags follow a specific naming convention that respects the concept of channels.
| Tags | Supported until | Version | Base | Architectures | |
|---|---|---|---|---|---|
1.26-26.04_stable | aliases1.26-26.04, 1.26-26.04_beta, 1.26-26.04_candidate, 1.26-26.04_edge | 05/2031 | 1.26 | 26.04 | amd64, arm64 |
1.22-24.04_stable | aliases1.22-24.04, 1.22-24.04_beta, 1.22-24.04_candidate, 1.22-24.04_edge | 05/2029 | 1.22 | 24.04 | amd64, arm64 |
1.25-26.04_edge | aliases1.25-26.04_edge | 07/2026 | 1.25 | 26.04 | amd64, arm64 |
1.24-25.04_edge | aliases1.24-25.04_edge | - | 1.24 | 25.04 | amd64, arm64 |
This rock's entrypoint is Pebble, a container-optimized init process that enables the orchestration of a collection of local service processes as an organized set.
To view the Pebble services and checks defined in this rock:
docker run --rm ubuntu/go:1.26-26.04_stable plan
To run this rock, use any of the usual container runtimes, for example, docker:
docker run --name go-container \
--rm -v /path/to/your/go/project:/work -w /work \
ubuntu/go:1.26-26.04_stable \
exec go build /path/to/target
The project within the current working directory will be built with the go build command.
The resulting binary will be placed in the current working directory.
To view the logs of the running container, run:
docker exec go-container pebble logs
Or, for a specific service:
docker exec go-container pebble logs <service>
Rocks may have predefined health checks that you can list by running:
docker exec go-container pebble checks
The overall health of your container can be inspected via:
docker exec go-container pebble health
Canonical is the provider of this container image. It is the user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within, as well as with Canonical’s IP Policy.
Content type
Image
Digest
sha256:65259d2b2…
Size
99.5 MB
Last updated
7 days ago
docker pull ubuntu/go:1.26-26.04_stablePulls:
598
Last week