ubuntu/hydra

Verified Publisher

By Canonical

Updated about 1 month ago

Ory Hydra is a hardened and certified OAuth 2.0 and OpenID Connect provider.

Image
Integration & delivery
2

10K+

ubuntu/hydra repository overview

ubuntu/hydra is a rock for hydra maintained by Canonical.

Ory Hydra is a hardened, OpenID Certified OAuth 2.0 Server and OpenID Connect Provider optimized for low-latency, high throughput, and low resource consumption. Ory Hydra enables you to become an OAuth 2.0 and OpenID Connect provider. If you're not writing a basic web app but something that has to work on different devices, that has machine-2-machine interaction, or enables third-party developers to use your API (and pay for it), then this is what you're looking for.

[Learn more about hydra]

Tags and Architectures

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

TagsSupported untilVersionBaseArchitectures
25-22.04_stable
aliases25-22.04, 25-22.04_beta, 25-22.04_candidate, 25-22.04_edge
07/20262522.04amd64
2-22.04_stable
aliases2-22.04, 2-22.04_beta, 2-22.04_candidate, 2-22.04_edge
06/2026222.04amd64
26-22.04_stable
aliases26-22.04, 26-22.04_beta, 26-22.04_candidate, 26-22.04_edge
09/20262622.04amd64
View deprecated tags
TagsSupport ended onUpgrade Path
2canonical-22.04_stable
aliases2canonical-22.04, 2canonical-22.04_beta, 2canonical-22.04_candidate, 2canonical-22.04_edge
05/2025 -
2.2.0-22.04_stable
aliases2.2.0-22.04, 2.2.0-22.04_beta, 2.2.0-22.04_candidate, 2.2.0-22.04_edge
05/2025 -

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/hydra:2canonical-22.04_stable plan
Run

To run this rock, use any of the usual container runtimes, for example, docker:

docker run --name hydra-container \
    -p 4444:4444 -p 4445:4445 \
    ubuntu/hydra:2canonical-22.04_stable

Access the Hydra Public API at http://localhost:4444, Admin API at http://localhost:4445.

Get logs

To view the logs of the running container, run:

docker exec hydra-container pebble logs

Or, for a specific service:

docker exec hydra-container pebble logs <service>
Monitor health checks

Rocks may have predefined health checks that you can list by running:

docker exec hydra-container pebble checks

The overall health of your container can be inspected via:

docker exec hydra-container pebble health

Configuration

Environment variables
OptionDescriptionDefault
TRACING_ENABLEDTracing enablement, e.g., true.None
TRACING_PROVIDERTracing protocol to be used, e.g., otel.None
TRACING_PROVIDERS_OTLP_INSECUREAllow Tracing via non TLS/insecure communication, e.g., true.None
TRACING_PROVIDERS_OTLP_SAMPLING_SAMPLING_RATIOTracing sampling ratio, e.g., 1.0.None
TRACING_PROVIDERS_OTLP_SERVER_URLTracing server url and port, e.g., tempo.server.io:4318.None
Volumes
OptionDescriptionDefault
-v <path>:/hydra.yamlHydra config contains all the information needed to successfully configure it as an OIDC Provider, see https://github.com/ory/hydra/blob/master/internal/config/config.yaml as a referenceNone
Ports
OptionDescriptionDefault
-p <port>:4444Expose Hydra Public API port 4444 on the host's <port>.None
-p <port>:4445Expose Hydra Admin API port 4445 on the host's <port> .None
Application parameters
OptionDescriptionDefault
--args hydra -- serve all --config /hydra.yamlLaunch Hydra web server(s) using a mix of environment variables and the config mounted via volume.None

[Report a bug] [Contribute]

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:386175c2d

Size

19.2 MB

Last updated

about 1 month ago

docker pull ubuntu/hydra:26-22.04_stable

This week's pulls

Pulls:

75

Last week