ubuntu/go

Verified Publisher

By Canonical

Updated 7 days ago

Go is an open source programming language to produce simple, efficient and reliable software.

Image
Languages & frameworks
4

10K+

ubuntu/go repository overview

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.

[Learn more about go]

Tags and Architectures

NOTE: These tags follow a specific naming convention that respects the concept of channels.

TagsSupported untilVersionBaseArchitectures
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/20311.2626.04amd64, 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/20291.2224.04amd64, arm64
1.25-26.04_edge
aliases1.25-26.04_edge
07/20261.2526.04amd64, arm64
1.24-25.04_edge
aliases1.24-25.04_edge
-1.2425.04amd64, arm64

Get started

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.

[Learn more about Pebble]

Inspect

To view the Pebble services and checks defined in this rock:

docker run --rm ubuntu/go:1.26-26.04_stable plan
Run

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.

Get logs

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>
Monitor health checks

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

[Report a bug]

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.

Tag summary

Content type

Image

Digest

sha256:65259d2b2

Size

99.5 MB

Last updated

7 days ago

docker pull ubuntu/go:1.26-26.04_stable

This week's pulls

Pulls:

598

Last week