1. Project Overview & Quickstart (docker-library/docs)
File: README.md
What is this?
This repository contains the image documentation for each of the Docker Official Images. See docker-library/official-images for more information about the program in general.
All Markdown files here are run through tianon's fork of markdownfmt, and verified as formatted correctly via GitHub Actions.
Table of Contents
- What is this?
- How do I update an image's docs
- How do I add a new image's docs
- Files related to an image's docs
- Files for main Docs repo
- Scripts unrelated to templates
- Issues and Contributing
How do I update an image's docs
Edit the content.md for an image; not the README.md as it's auto-generated from the contents of the other files in that repo. To see the changes to the README.md, run ./update.sh myimage from the repo root, but do not add the README.md changes to your pull request. See also markdownfmt.sh point below.
After opening your Pull Request the changes will be checked by an automated markdownfmt.sh before it can be merged. A common issue is incorrect spacing such as with two lines missing an empty line between them (double-spaced).
How do I add a new image's docs
- Create a folder for my image:
mkdir myimage - Create a
README-short.txt(required, 100 char max) - Create a
content.md(required) - Create a
license.md(required) - Create a
maintainer.md(required) - Create a
github-repo(required) - Create a
metadata.json(required) - Add a
logo.png(recommended)
Optionally:
- Run
./markdownfmt.sh -l myimageto list any files that are non-compliant totianon/markdownfmt.
Any files in the list will result in a failed build during continuous integration.- run
./markdownfmt.sh -d myimageto see a diff of changes required to pass.
- run
- Run
./update.sh myimageto generatemyimage/README.mdfor manual review of the generated copy.
Note: do not actually commit theREADME.mdfile; it is automatically generated/committed before being uploaded to Docker Hub.
Files related to an image's docs
folder ``
This is where all the partial (e.g. content.md) and generated files (e.g. README.md) for a given image reside, (e.g. golang/). It must match the name of the image used in docker-library/official-images.
`README.md`
This file is generated using update.sh. Do not commit or edit this file; it is regenerated periodically by a bot.
`content.md`
This file contains the main content of your image's long description. The basic parts you should have are a "What Is" section and a "How To" section. The following is a basic layout:
# What is XYZ?
// about what the contained software is
%%LOGO%%
# How to use this image
// descriptions and examples of common use cases for the image
// make use of subsections as necessary`get-help.md`
This file is an optional override of the default get-help.md. This is the content of the "Where to get help" part of the "Quick reference" at the top of the generated README. We recommend linking to the best places for community support like forums, chat rooms, or mailing lists.
`github-repo`
This file should contain the URL to the GitHub repository for the Dockerfiles that become the images. The file should be in a single line ending in a newline with no extraneous whitespace. Only one GitHub repo per image repository is supported. It is used in generating links. Here is an example for golang:
https://github.com/docker-library/golang`license.md`
This file should contain a link to the license for the main software in the image. Here is an example for golang:
View [license information](http://golang.org/LICENSE) for the software contained in this image.`logo.png`
Logo for the contained software. While there are not hard rules on formatting, most existing logos are square or landscape and stay within a few hundred pixels of width. Alternatively, a logo.svg can be used instead, but only one logo file will apply. To use it within content.md, put %%LOGO%% as shown above in the basic content.md layout.
The image is automatically scaled to a 120 pixel square for the top of the Docker Hub page and Hub search results.
`maintainer.md`
This file should contain a link to the maintainers of the Dockerfile.
`metadata.json`
This file contains data about the repo for Docker Hub. The minimum file is defined below. ./metadata.sh [repo-name] must be used to correctly format it (use -w to apply its suggested format changes). Only three sorted unique Docker Hub categories are allowed. metadata.json in the root contains the list of categories to choose from. See descriptions for the categories on the Docker docs site.
{
"hub": {
"categories": []
}
}`README-short.txt`
This is the short description for the Docker Hub, limited to 100 characters in a single line.
Go (golang) is a general purpose, higher-level, imperative programming language.
`compose.yaml`
This optional file contains a small, working Compose file showing off how to use the image. To use the compose.yaml, add %%COMPOSE%% to the content.md and this will embed the YAML.
Other official images may be referenced within the YAML to demonstrate the functionality of the image, but no images external to the Docker Official Images program may be referenced.
Files for main Docs repo
`update.sh`
This is the main script used to generate the README.md files for each image. The generated file is committed along with the files used to generate it. Accepted arguments are which image(s) you want to update or no arguments to update all of them.
This script assumes bashbrew is in your PATH (for scraping relevant tag information from the library manifest file for each repository).
`markdownfmt.sh` and `ymlfmt.sh`
These two scripts are for verifying the formatting of Markdown (.md) and YAML (.yml) files, respectively. markdownfmt.sh uses the tianon/markdownfmt image and ymlfmt.sh uses the tianon/ymlfmt image.
`.template-helpers/generate-dockerfile-links-partial.sh`
This script is used by update.sh to create the "Supported tags and respective Dockerfile links" section of each generated README.md from the information in the official-images library/ manifests.
`.template-helpers/`
The scripts and Markdown files in here are used in building an image's README.md file in combination with its individual files.
Scripts unrelated to templates
`generate-repo-stub-readme.sh`
This is used to generate a simple README.md to put in the image's repo. We use this in Git repositories within https://github.com/docker-library to simplify our maintenance, but it is not required for anyone else. The only argument is the name of the image (or repo), like golang and it then outputs the readme to standard out.
`push.pl` and `push.sh`
These are used by us to push the actual content of the READMEs to the Docker Hub as special access is required to modify the Hub description contents. The Dockerfile is used to create a suitable environment for push.pl.
Issues and Contributing
If you would like to make a new Official Image, be sure to follow the guidelines.
Feel free to make a pull request for fixes and improvements to current documentation. For questions or problems on this repo come talk to us via the #docker-library IRC channel on Libera.Chat or open up an issue.
File: adminer/README.md
Quick reference
Maintained by:
Tim Düsterhus (of the Docker Community)Where to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Supported tags and respective `Dockerfile` links
Quick reference (cont.)
Where to file issues:
https://github.com/TimWolla/docker-adminer/issuesSupported architectures: (more info)
amd64,arm32v6,arm32v7,arm64v8,i386,ppc64le,riscv64,s390xPublished image artifact details:
repo-info repo'srepos/adminer/directory (history)
(image metadata, transfer size, etc)Image updates:
official-images repo'slibrary/adminerlabel
official-images repo'slibrary/adminerfile (history)Source of this description:
docs repo'sadminer/directory (history)
Adminer
What is Adminer?
Adminer (formerly phpMinAdmin) is a full-featured database management tool written in PHP. Conversely to phpMyAdmin, it consist of a single file ready to deploy to the target server. Adminer is available for MySQL, PostgreSQL, SQLite, MS SQL, Oracle, Firebird, SimpleDB, Elasticsearch and MongoDB.
How to use this image
Standalone
$ docker run --link some_database:db -p 8080:8080 adminerThen you can hit http://localhost:8080 or http://host-ip:8080 in your browser.
FastCGI
If you are already running a FastCGI capable web server you might prefer running Adminer via FastCGI:
$ docker run --link some_database:db -p 9000:9000 adminer:fastcgiThen point your web server to port 9000 of the container.
Note: This exposes the FastCGI socket to the Internet. Make sure to add proper firewall rules or use a private Docker network instead to prevent a direct access.
... via [`docker compose`](https://github.com/docker/compose)
Example compose.yaml for adminer:
# Use root/example as user/password credentials
services:
adminer:
image: adminer
restart: always
ports:
- 8080:8080
db:
image: mysql:5.6
restart: always
environment:
MYSQL_ROOT_PASSWORD: exampleRun docker compose up, wait for it to initialize completely, and visit http://localhost:8080 or http://host-ip:8080 (as appropriate).
Loading plugins
This image bundles all official Adminer plugins. You can find the list of plugins on GitHub: https://github.com/vrana/adminer/tree/master/plugins.
To load plugins you can pass a list of filenames in ADMINER_PLUGINS:
$ docker run --link some_database:db -p 8080:8080 -e ADMINER_PLUGINS='tables-filter tinymce' adminerIf a plugin requires parameters to work correctly instead of adding the plugin to ADMINER_PLUGINS, you need to add a custom file to the container:
$ docker run --link some_database:db -p 8080:8080 -e ADMINER_PLUGINS='login-servers' adminer
Unable to load plugin file "login-servers", because it has required parameters: servers
Create a file "/var/www/html/plugins-enabled/login-servers.php" with the following contents to load the plugin:
<?php
require_once('plugins/login-servers.php');
/** Set supported servers
* @param array array($domain) or array($domain => $description) or array($category => array())
* @param string
*/
return new AdminerLoginServers(
$servers = ???,
$driver = 'server'
);To load a custom plugin you can add PHP scripts that return the instance of the plugin object to /var/www/html/plugins-enabled/.
Choosing a design
The image bundles all the designs that are available in the source package of adminer. You can find the list of designs on GitHub: https://github.com/vrana/adminer/tree/master/designs.
To use a bundled design you can pass its name in ADMINER_DESIGN:
$ docker run --link some_database:db -p 8080:8080 -e ADMINER_DESIGN='nette' adminerTo use a custom design you can add a file called /var/www/html/adminer.css.
Usage with external server
You can specify the default host with the ADMINER_DEFAULT_SERVER environment variable. This is useful if you are connecting to an external server or a docker container named something other than the default db.
docker run -p 8080:8080 -e ADMINER_DEFAULT_SERVER=mysql adminerSupported Drivers
While Adminer supports a wide range of database drivers this image only supports the following out of the box:
- MySQL
- PostgreSQL
- SQLite
- SimpleDB
- Elasticsearch
To add support for the other drivers you will need to install the following PHP extensions on top of this image:
pdo_dblib(MS SQL)oci8(Oracle)interbase(Firebird)mongodb(MongoDB)
License
View license information for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's adminer/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
File: aerospike/README.md
Quick reference
Maintained by:
Aerospike, Inc.Where to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Supported tags and respective `Dockerfile` links
Quick reference (cont.)
Where to file issues:
the Aerospike Forums or GitHubPublished image artifact details:
repo-info repo'srepos/aerospike/directory (history)
(image metadata, transfer size, etc)Image updates:
official-images repo'slibrary/aerospikelabel
official-images repo'slibrary/aerospikefile (history)Source of this description:
docs repo'saerospike/directory (history)
Aerospike Database Docker Images
What is Aerospike?
Aerospike is a distributed NoSQL database purposefully designed for high performance web scale applications. Aerospike supports key-value and document data models, and has multiple data types including List, Map, HyperLogLog, GeoJSON, and Blob. Aerospike's patented hybrid memory architecture delivers predictable high performance at scale and high data density per node.
Getting Started
Aerospike Enterprise Edition requires a feature key file to start and to ungate certain features in the database, such as compression. Enterprise customers can use their production or development keys.
Anyone can sign up to get an evaluation feature key file for a full-featured, single-node Aerospike Enterprise Edition.
Aerospike Community Edition supports the same developer APIs as Aerospike Enterprise Edition, and differs in ease of operation and enterprise features. See the product matrix for more.
Running an Aerospike EE node with a feature key file in a mapped directory
docker run -d -v DIR:/opt/aerospike/etc/ -e "FEATURE_KEY_FILE=/opt/aerospike/etc/features.conf" --name aerospike -p 3000-3002:3000-3002 aerospike:ee-[version]Above, DIR is a directory on your machine where you drop your feature key file. Make sure Docker Desktop has file sharing permission to bind mount it into Docker containers.
Running a node with a feature key file in an environment variable
FEATKEY=$(base64 ~/Desktop/evaluation-features.conf)
docker run -d -e "FEATURES=$FEATKEY" -e "FEATURE_KEY_FILE=env-b64:FEATURES" --name aerospike -p 3000-3002:3000-3002 aerospike:ee-[version]Running an Aerospike CE node
docker run -d --name aerospike -p 3000-3002:3000-3002 aerospike:ce-[version]Advanced Configuration
The Aerospike Docker image has a default configuration file template that can be populated with individual configuration parameters, as we did before with FEATURE_KEY_FILE. Alternatively, it can be replaced with a custom configuration file.
The following sections describe both advanced options.
Injecting configuration parameters
You can inject parameters into the configuration template using container-side environment variables with the -e flag.
For example, to set the default namespace name to demo:
docker run -d --name aerospike -e "NAMESPACE=demo" -p 3000-3002:3000-3002 -v /my/dir:/opt/aerospike/etc/ -e "FEATURE_KEY_FILE=/opt/aerospike/etc/features.conf" aerospike:ee-[version]Injecting configuration parameters into the configuration template isn't compatible with using a custom configuration file. You can use one or the other.
List of template variables
FEATURE_KEY_FILE- thefeature_key_fileis only required for the EE image. Default: /etc/aerospike/features.confSERVICE_THREADS- theservice_threads. Default: Number of vCPUsLOGFILE- thefileparam of theloggingcontext. Default: /dev/null, do not log to file, log to stdoutSERVICE_ADDRESS- the bindaddressof thenetworking.servicesubcontext. Default: anySERVICE_PORT- theportof thenetworking.servicesubcontext. Default: 3000HB_ADDRESS- thenetworking.heartbeataddressfor cross cluster mesh. Default: anyHB_PORT- theportfornetworking.heartbeatcommunications. Default: 3002FABRIC_ADDRESS- theaddressof thenetworking.fabricsubcontext. Default: anyFABRIC_PORT- theportof thenetworking.fabricsubcontext. Default: 3001
The single preconfigured namespace is in-memory with filesystem persistence
NAMESPACE- the name of the namespace. Default: testREPL_FACTOR- the namespacereplication-factor. Default: 2MEM_GB- the namespacememory-size. Default: 1, the unit is alwaysG(GB)DEFAULT_TTL- the namespacedefault-ttl. Default: 30dSTORAGE_GB- the namespace persistencefilesize. Default: 4, the unit is alwaysG(GB)NSUP_PERIOD- the namespacensup-period. Default: 120 , nsup-period in seconds
Using a custom configuration file
You can override the use of the configuration file template by providing your own aerospike.conf, as described in Configuring Aerospike Database.
You should first -v map a local directory, which Docker will bind mount. Next, drop your aerospike.conf file into this directory. Finally, use the --config-file option to tell Aerospike where in the container the configuration file is (the default path is /etc/aerospike/aerospike.conf). Remember that the feature key file is required, so use feature-key-file in your config file to point to a mounted path (such as /opt/aerospike/etc/feature.conf).
For example:
docker run -d -v /opt/aerospike/etc/:/opt/aerospike/etc/ --name aerospike -p 3000-3002:3000-3002 aerospike:ee-[version] --config-file /opt/aerospike/etc/aerospike.confPersistent Data Directory
With Docker, the files within the container are not persisted past the life of the container. To persist data, you will want to mount a directory from the host to the container's /opt/aerospike/data using the -v option:
For example:
docker run -d -v /opt/aerospike/data:/opt/aerospike/data -v /opt/aerospike/etc:/opt/aerospike/etc/ --name aerospike -p 3000-3002:3000-3002 -e "FEATURE_KEY_FILE=/opt/aerospike/etc/features.conf" aerospike:ee-[version]The example above uses the configuration template, where the single defined namespace is in-memory with file-based persistence. Just mounting the predefined /opt/aerospike/data directory enables the data to be persisted on the host.
Alternatively, a custom configuration file is used with the parameter file set to be a file in the mounted /opt/aerospike/data, such as in the following config snippet:
namespace test {
# :
storage-engine device {
file /opt/aerospike/data/test.dat
filesize 4G
data-in-memory true
}
}In this example we also mount the data directory in a similar way, using a custom configuration file.
docker run -d -v /opt/aerospike/data:/opt/aerospike/data -v /opt/aerospike/etc/:/opt/aerospike/etc/ --name aerospike -p 3000-3002:3000-3002 aerospike:ee-[version] --config-file /opt/aerospike/etc/aerospike.confBlock Storage
Docker provides an ability to expose a host's block devices to a running container. The --device option can be used to map a host block device within a container.
Update the storage-engine device section of the namespace in the custom aerospike configuration file.
namespace test {
# :
storage-engine device {
device /dev/xvdc
write-block-size 128k
}
}Now to map a host drive /dev/sdc to /dev/xvdc on a container
docker run -d --device '/dev/sdc:/dev/xvdc' -v /opt/aerospike/etc/:/opt/aerospike/etc/ --name aerospike -p 3000-3002:3000-3002 aerospike:ee-[version] --config-file /opt/aerospike/etc/aerospike.confPersistent Lua Cache
Upon restart, your lua cache will become emptied. To persist the cache, you will want to mount a directory from the host to the container's /opt/aerospike/usr/udf/lua using the -v option:
docker run -d -v /opt/aerospike/lua:/opt/aerospike/usr/udf/lua -v /opt/aerospike/data:/opt/aerospike/data --name aerospike -p 3000-3002:3000-3002 -e "FEATURE_KEY_FILE=/opt/etc/aerospike/features.conf" aerospike:ee-[version]Clustering
Developers using the Aerospike EE single-node evaluation, and most others using Docker Desktop on their machine for development, will not need to configure the node for clustering. If you're interested in using clustering and have a feature key file without a single node limit, read the following sections.
Configuring the node's access address
In order for the Aerospike node to properly broadcast its address to the cluster and applications, the access-address configuration parameter needs to be set in the configuration file. If it is not set, then the IP address within the container will be used, which is not accessible to other nodes.
network {
service {
address any # Listening IP Address
port 3000 # Listening Port
access-address 192.168.1.100 # IP Address used by cluster nodes and applications
}Mesh Clustering
Mesh networking requires setting up links between each node in the cluster. This can be achieved in two ways:
- Add a configuration for each node in the cluster, as defined in Network Heartbeat Configuration.
- Use
asinfoto send thetipcommand, to make the node aware of another node, as defined in tip command in asinfo.
For more, see How do I get a 2 nodes Aerospike cluster running quickly in Docker without editing a single file?
Image Versions
These images are based on ubuntu:24.04.
ee-[version]
These tags are for Aerospike EE images, and will require a feature key file, such as the one you get with the single-node EE evaluation, or one associated with a commercial enterprise license agreement.
ce-[version]
These tags are for Aerospike CE images, and do not require a feature key file to start. As mentioned above, the developer API for both is the same, but the editions differ in operational features.
Reporting Issues
If you have any problems with or questions about this image, please post on the Aerospike discussion forum.
Enterprise customers are welcome to participate in the community forum, but can also report issues through the enterprise support system.
Aerospike EE evaluation users can open an issue in aerospike/aerospike-server-enterprise.docker.
Aerospike CE users can open an issue in aerospike/aerospike-server.docker.
License
Copyright 2019-2021 Aerospike, Inc.
If you are using a feature key file you received as part of your commercial enterprise license, you are operating under the Aerospike Master License Agreement.
If you are using the Aerospike Database EE evaluation feature key file, you are operating under the Aerospike Evaluation License Agreement.
If you are using Aerospike Database CE refer to the license information in the aerospike/aerospike-server repository.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's aerospike/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
File: almalinux/README.md
Quick reference
Maintained by:
The AlmaLinux OS FoundationWhere to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Supported tags and respective `Dockerfile` links
Quick reference (cont.)
Where to file issues:
https://bugs.almalinux.org or GitHubSupported architectures: (more info)
amd64,arm64v8,i386,ppc64le,riscv64,s390xPublished image artifact details:
repo-info repo'srepos/almalinux/directory (history)
(image metadata, transfer size, etc)Image updates:
official-images repo'slibrary/almalinuxlabel
official-images repo'slibrary/almalinuxfile (history)Source of this description:
docs repo'salmalinux/directory (history)
AlmaLinux OS
AlmaLinux OS is an Open Source and forever-free enterprise Linux distribution, governed and driven by the community, focused on long-term stability and a robust production-grade platform. AlmaLinux OS is binary compatible with RHEL®, and it was founded by the team behind the well-established CloudLinux OS. Today, the AlmaLinux OS Foundation, run by a community-elected board of directors, owns and manages the operating system.
About this image
Platform image
The default (platform) image is a general-purpose image with a full DNF stack and basic tools like find, tar, vi, etc.
The almalinux:latest tag will always point to the latest stable release of the default image. Major releases and minor releases are also tagged with their version (e.g. almalinux:8 or almalinux:8.4).
Minimal image
The minimal image is a stripped-down image that uses the microdnf package manager and contains a very limited package set. It is designed for applications that come with their own dependencies bundled (e.g. NodeJS, Python).
The almalinux:minimal tag always points to the most recent version of the minimal image. Tags for major (e.g. almalinux:8-minimal) and minor (e.g. almalinux:8.4-minimal) releases are also available.
Upgrade policy
All images for supported releases will be updated monthly or as needed for security fixes.
How It's Made
The rootfs tarballs for this image are built using the livemedia-creator tool. The build script and kickstart files are available in the AlmaLinux/docker-images git repository.
License
View license information for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's almalinux/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
File: alpine/README.md
Quick reference
Maintained by:
Natanael Copa (an Alpine Linux maintainer)Where to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Supported tags and respective `Dockerfile` links
Quick reference (cont.)
Where to file issues:
https://github.com/alpinelinux/docker-alpine/issuesSupported architectures: (more info)
amd64,arm32v6,arm32v7,arm64v8,i386,ppc64le,riscv64,s390xPublished image artifact details:
repo-info repo'srepos/alpine/directory (history)
(image metadata, transfer size, etc)Image updates:
official-images repo'slibrary/alpinelabel
official-images repo'slibrary/alpinefile (history)Source of this description:
docs repo'salpine/directory (history)
What is Alpine Linux?
Alpine Linux is a Linux distribution built around musl libc and BusyBox. The image is only 5 MB in size and has access to a package repository that is much more complete than other BusyBox based images. This makes Alpine Linux a great image base for utilities and even production applications. Read more about Alpine Linux here and you can see how their mantra fits in right at home with Docker images.
How to use this image
Usage
Use like you would any other base image:
FROM alpine:3.14
RUN apk add --no-cache mysql-client
ENTRYPOINT ["mysql"]This example has a virtual image size of only 36.8MB. Compare that to our good friend Ubuntu:
FROM ubuntu:20.04
RUN apt-get update \
&& apt-get install -y --no-install-recommends mysql-client \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["mysql"]This yields us a virtual image size of about 145MB image.
License
View license information for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's alpine/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
File: alt/README.md
Quick reference
Maintained by:
The ALT Linux Team CloudWhere to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Supported tags and respective `Dockerfile` links
Quick reference (cont.)
- Where to file issues:
First of all, please, make sure that the developers are not aware of the bug in ALT bugzilla.
For create new bug, please use ALT's bugzilla page (choose Official image as component and include details about image problems in the description) or GitHub.
Supported architectures: (more info)
amd64,arm64v8,i386,riscv64Published image artifact details:
repo-info repo'srepos/alt/directory (history)
(image metadata, transfer size, etc)Image updates:
official-images repo'slibrary/altlabel
official-images repo'slibrary/altfile (history)Source of this description:
docs repo'salt/directory (history)
ALT Linux
This image serves as the official ALT image for the ALT Linux.
ALT Linux Team
ALT Linux Team is an international community numbering over 200 free software developers.
Sisyphus
Sisyphus is a daily updated repository which serves as a basis for all ALT distributions. Sisyphus integrity supported by the ALT Linux Team, the original software packaging technology, and apt-get (apt-rpm) utility allows users to easily update the system and be aware of any news on the free software. This daily updated repository contains the latest software with all its benefits and pitfalls (latent sometimes).
The name Sisyphus comes from the Greek mythology. Uninterrupted efforts on improvement of technologies set in the repository make ALT Linux Team similar to tireless Sisyphus continuously rolling stones up the hill.
About Platform 9
As said above, Sisyphus is a frequently updated repository mainly designed for developers. Stable distributions by ALT are the best solution for those users preferring stability and predictability of the system to its functionality (primarily new and corporate users). Such stable distributions are based on stable Sisyphus repository slices called platforms. Platform 9 (p9) was created in June, 2019, and will be supported till December, 2022.
About this image
The alt:latest tag will always point the latest stable release (which is, at the time of this writing, alt:p9).
How It's Made
This image was created with the help of mkimage and hasher tools.
Mkimage is a tool used to create images with Linux kernel from the set Sisyphus-like repository. Mkimage uses a set of Makefiles and shell hooks.
Hasher is a tool used for safe and repeatable packaging in clean and controllable environment. This is achieved through creation of a minimum build environment in chroot, installation of all necessary packaging dependencies there, and packet assembly in the new environment. Every package requires a new build environment.
License
View license information for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's alt/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
File: amazoncorretto/README.md
Quick reference
Maintained by:
the AWS JDK teamWhere to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Supported tags and respective `Dockerfile` links
8-al2,8u504-al2,8-al2-full,8-al2-jdk,8-al2-generic,8u504-al2-generic,8-al2-generic-jdk8-al2023,8u504-al2023,8-al2023-jdk,8,8-jdk,8u504,latest8-alpine3.21,8u504-alpine3.21,8-alpine3.21-full,8-alpine3.21-jdk8-alpine3.22,8u504-alpine3.22,8-alpine3.22-full,8-alpine3.22-jdk8-alpine3.23,8u504-alpine3.23,8-alpine3.23-full,8-alpine3.23-jdk8-alpine3.24-jre,8u504-alpine3.24-jre,8-alpine-jre,8u504-alpine-jre11-al2023,11.0.32-al2023,11-al2023-jdk,11,11-jdk,11.0.3211-alpine3.21,11.0.32-alpine3.21,11-alpine3.21-full,11-alpine3.21-jdk11-alpine3.22,11.0.32-alpine3.22,11-alpine3.22-full,11-alpine3.22-jdk11-alpine3.23,11.0.32-alpine3.23,11-alpine3.23-full,11-alpine3.23-jdk17-al2023,17.0.20-al2023,17-al2023-jdk,17,17-jdk,17.0.2017-alpine3.21,17.0.20-alpine3.21,17-alpine3.21-full,17-alpine3.21-jdk17-alpine3.22,17.0.20-alpine3.22,17-alpine3.22-full,17-alpine3.22-jdk17-alpine3.23,17.0.20-alpine3.23,17-alpine3.23-full,17-alpine3.23-jdk21-al2023,21.0.12-al2023,21-al2023-jdk,21,21-jdk,21.0.1221-alpine3.21,21.0.12-alpine3.21,21-alpine3.21-full,21-alpine3.21-jdk21-alpine3.22,21.0.12-alpine3.22,21-alpine3.22-full,21-alpine3.22-jdk21-alpine3.23,21.0.12-alpine3.23,21-alpine3.23-full,21-alpine3.23-jdk25-alpine3.21,25.0.4-alpine3.21,25-alpine3.21-full,25-alpine3.21-jdk25-alpine3.22,25.0.4-alpine3.22,25-alpine3.22-full,25-alpine3.22-jdk25-alpine3.23,25.0.4-alpine3.23,25-alpine3.23-full,25-alpine3.23-jdk26-alpine3.21,26.0.2-alpine3.21,26-alpine3.21-full,26-alpine3.21-jdk26-alpine3.22,26.0.2-alpine3.22,26-alpine3.22-full,26-alpine3.22-jdk26-alpine3.23,26.0.2-alpine3.23,26-alpine3.23-full,26-alpine3.23-jdk
Quick reference (cont.)
Where to file issues:
https://github.com/corretto/corretto-docker/issuesPublished image artifact details:
repo-info repo'srepos/amazoncorretto/directory (history)
(image metadata, transfer size, etc)Image updates:
official-images repo'slibrary/amazoncorrettolabel
official-images repo'slibrary/amazoncorrettofile (history)Source of this description:
docs repo'samazoncorretto/directory (history)
What is Amazon Corretto?
Corretto is a binary distribution of the Open Java Development Kit (OpenJDK) with long-term support from Amazon. Corretto is certified using the Java Technical Compatibility Kit (TCK) to ensure it meets the Java SE standard and is available on Linux, Windows, and macOS. It includes patches from Amazon that have proven useful in running our own services.
Why should I use Corretto?
Corretto is a reliable binary distribution of OpenJDK with the assurance of long-term support provided at no cost to you. Amazon runs Corretto internally on thousands of production services. Every modification we make to Corretto fixes or mitigates a problem we found running OpenJDK. Amazon also plans to apply urgent fixes (including security) when they are available and ready to use, outside of the regular quarterly cycle.
How is Corretto different from OpenJDK?
Corretto is a distribution of Open JDK with patches included by Amazon that are not yet integrated in the corresponding OpenJDK update projects. We focus on patches that improve performance or stability in OpenJDK, chosen based on Amazon's observations running large services.
What kinds of patches does Amazon intend to include in Corretto?
Patches will include security fixes, performance enhancements (e.g., speeding up frequently used functions), garbage collection scheduling, and preventing out-of-memory situations, as well as improved monitoring, reporting, and thread management.
Is there any cost associated with using Corretto?
Corretto is distributed by Amazon under an Open Source license at no cost to you. It is licensed under the terms of the GNU Public License version 2 with the Class Path Exception (GPLv2 with CPE). Amazon does not charge for its use or distribution.
What is included in Corretto's long-term support?
Amazon will provide security updates for Corretto 8 until at least June 2023. Updates are planned to be released quarterly. Corretto 11, corresponding to OpenJDK 11, will be available during the first half of 2019. Amazon will support Corretto 11 with quarterly updates until at least August 2024.
Can I use Corretto as a drop-in replacement for other JDKs?
Corretto is designed as a drop-in replacement for all Java SE distributions unless you are using features (e.g., Java Flight Recorder) not available in OpenJDK. Once Corretto binaries are installed on a host and correctly invoked to run your Java applications (e.g., using the alternatives command on Linux), existing command-line options, tuning parameters, monitoring, and anything else in place will continue to work as before.
Why does security scanner show that a docker image has a CVE?
If a security scanner reports that an amazoncorretto image includes a CVE, the first recommended action is to pull an updated version of this image.
If no updated image is available, run the appropriate command to update packages for the platform, ie. run "apk -U upgrade" for Alpine or "yum update -y --security" for AmazonLinux in your Dockerfiles or systems to resolve the issue immediately.
If no updated package is available, please treat this as a potential security issue and follow these instructions or email AWS security directly at [email protected].
It is the responsibility of the base docker image supplier to provide timely security updates to images and packages. The amazoncorretto images are automatically rebuilt when a new base image is made available, but we do not make changes to our Dockerfiles to pull in one-off package updates. If a new base image has not yet been made generally available by a base docker image maintainer, please contact that maintainer to request that the issue be addressed.
Note that there are multiple reasons why a CVE may appear to be present in a docker image, as explained in the docker library FAQs.
Image Variants
The amazoncorretto images come in many flavors, each designed for a specific use case.
`amazoncorretto:`
This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as the base to build other images off of.
`amazoncorretto:-alpine`
This image is based on the popular Alpine Linux project, available in the alpine official image. Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general.
This variant is useful when final image size being as small as possible is your primary concern. The main caveat to note is that it does use musl libc instead of glibc and friends, so software will often run into issues depending on the depth of their libc requirements/assumptions. See this Hacker News comment thread for more discussion of the issues that might arise and some pro/con comparisons of using Alpine-based images.
To minimize image size, it's uncommon for additional related tools (such as git or bash) to be included in Alpine-based images. Using this image as a base, add the things you need in your own Dockerfile (see the alpine image description for examples of how to install packages if you are unfamiliar).
License
Amazon Corretto is released under the same open source license as OpenJDK, which is licensed under the GNU Public License version 2 with the Class Path Exception (GPLv2 with CPE).
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's amazoncorretto/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
File: amazonlinux/README.md
**DEPRECATION NOTICE**
The 1, 2018.03, and 2018.03.0.20231218.0 tags of this image are EOL (December 31, 2023 / docker-library/official-images#22075, although the last meaningful update was December 18, 2023). Please migrate to amazonlinux:2023. See the AL2023 migration guide for details.
Quick reference
Maintained by:
the Amazon Linux TeamWhere to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Supported tags and respective `Dockerfile` links
Quick reference (cont.)
Where to file issues:
Published image artifact details:
repo-info repo'srepos/amazonlinux/directory (history)
(image metadata, transfer size, etc)Image updates:
official-images repo'slibrary/amazonlinuxlabel
official-images repo'slibrary/amazonlinuxfile (history)Source of this description:
docs repo'samazonlinux/directory (history)
What is Amazon Linux?
Amazon Linux is provided by Amazon Web Services (AWS). It is designed to provide a stable, secure, and high-performance execution environment for applications running on Amazon EC2. The full distribution includes packages that enable easy integration with AWS, including launch configuration tools and many popular AWS libraries and tools. AWS provides ongoing security and maintenance updates to all instances running Amazon Linux.
The Amazon Linux container image contains a minimal set of packages. To install additional packages, use dnf.
Supported major versions of Amazon Linux:
- Amazon Linux 2023 (recommended, latest)
Amazon Linux 2 reached end of life on June 30, 2026 (see AL2 FAQs). Amazon Linux AMI (AL1) reached end of life on December 31, 2023. Please migrate to Amazon Linux 2023.
For information on security updates for Amazon Linux, please refer to:
Note that Docker Hub's vulnerability scanning for Amazon Linux is currently based on RPM versions, which does not reflect the state of backported patches for vulnerabilities.
What is Amazon Linux 2023?
- Amazon Linux 2023: https://aws.amazon.com/linux/amazon-linux-2023/
- 2023 Release Notes: https://docs.aws.amazon.com/linux/al2023/release-notes/relnotes.html
- FAQs: https://aws.amazon.com/linux/amazon-linux-2023/faqs/
- What's New: https://aws.amazon.com/about-aws/whats-new/2023/03/amazon-linux-2023/
- User Guide: https://docs.aws.amazon.com/linux/al2023/ug/what-is-amazon-linux.html
Where can I run Amazon Linux container images?
You can run Amazon Linux container images in any Docker based environment. Examples include, your laptop, in AWS EC2 instances, and ECS clusters.
What packages are available in the Amazon Linux containers?
Amazon Linux Docker container images contain a subset of the packages in the images for use on EC2 and as VMs in on-premises scenarios. The container images can be configured to use any of the full set of packages in images for EC2 and on-premises use.
Will updates be available for Amazon Linux containers?
Similar to the Amazon Linux images for AWS EC2 and on-premises use, Amazon Linux container images will get ongoing updates from Amazon in the form of security updates, bug fix updates, and other enhancements. Security bulletins for Amazon Linux are available at https://alas.aws.amazon.com/
What support is available for Amazon Linux outside AWS?
- GitHub Issues: https://github.com/amazonlinux/amazon-linux-2023/issues
- Documentation: https://docs.aws.amazon.com/linux/
- Paid Support from AWS: https://aws.amazon.com/premiumsupport/
Will AWS support the current versions of Amazon Linux going forward?
Yes; Amazon Linux 2023 receives ongoing security and maintenance updates. Amazon Linux 2 reached end of life on June 30, 2026, and Amazon Linux AMI (AL1) reached end of life on December 31, 2023. Please migrate to Amazon Linux 2023.
FAQs
Amazon Linux 2023
License
Amazon Linux is available under the GNU General Public License, version 2.0. Individual software packages are available under their own licenses; run rpm -qi [package name] or check /usr/share/doc/[package name]-* and /usr/share/licenses/[package name]-* for details.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's amazonlinux/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
File: api-firewall/README.md
Quick reference
Maintained by:
The Wallarm TeamWhere to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Supported tags and respective `Dockerfile` links
Quick reference (cont.)
Where to file issues:
https://github.com/wallarm/api-firewall/issuesPublished image artifact details:
repo-info repo'srepos/api-firewall/directory (history)
(image metadata, transfer size, etc)Image updates:
official-images repo'slibrary/api-firewalllabel
official-images repo'slibrary/api-firewallfile (history)Source of this description:
docs repo'sapi-firewall/directory (history)
What is API Firewall?
Wallarm API Firewall is an open-source light-weighted proxy designed to protect REST API endpoints in cloud-native environments by hardening based on a strict OpenAPI/Swagger schema validation. Wallarm API Firewall relies on a positive security model allowing calls that match a predefined API specification for requests and responses, while rejecting everything else.
The key features of API Firewall are:
- Protect REST API endpoints by blocking requests and responses that do not match the OAS/Swagger schema
- Discover Shadow API endpoints
- If using OAuth 2.0 protocol-based authentication, validate access tokens
- Quick and easy deployment and configuration
- Customization of request and response processing modes, response codes and log format
Use cases
- Block abnormal requests and responses that do not match the OpenAPI 3.0 specification (if running API Firewall in the blocking mode)
- Discover Shadow APIs and undocumented endpoints (if running API Firewall in the logging mode)
- Log abnormal requests and responses that do not match the OpenAPI 3.0 specification (if running API Firewall in the logging mode)
API schema validation and positive security model
When starting API Firewall, you should provide the OpenAPI 3.0 specification of the application to be protected with API Firewall. The started API Firewall will operate as a reverse proxy and validate whether requests and responses match the schema defined in the specification.
The traffic that does not match the schema will be logged using the STDOUT and STDERR Docker services or blocked (depending on the configured API Firewall operation mode). If operating in the logging mode and detecting the traffic on endpoints that are not included in the specification, API Firewall also logs these endpoints as the shadow ones (except for endpoints returning the code 404).
Provided API schema should be described using the OpenAPI 3.0 specification in the YAML or JSON file (.yaml, .yml, .json file extensions).
By allowing you to set the traffic requirements with the OpenAPI 3.0 specification, Wallarm API Firewall relies on a positive security model.
Technical characteristics
API Firewall works as a reverse proxy with a built-in OpenAPI 3.0 request and response validator. The validator is written in Go and optimized for extreme performance and near-zero added latency.
Starting API Firewall
To download, install, and start Wallarm API Firewall on Docker, see the instructions.
Demos
You can try API Firewall by running the demo environment that deploys an example application protected with Wallarm API Firewall. There are two available demo environments:
Wallarm's blog articles related to API Firewall
- Discovering Shadow APIs with API Firewall
- Wallarm API Firewall outperforms NGINX in a production environment
Performance
When creating API Firewall, we prioritized speed and efficiency to ensure that our customers would have the fastest APIs possible. Our latest tests demonstrate that the average time required for API Firewall to process one request is 1.339 ms:
$ ab -c 200 -n 10000 -p ./large.json -T application/json http://127.0.0.1:8282/test/signup
Document Path: /test/signup
Document Length: 20 bytes
Concurrency Level: 200
Time taken for tests: 0.769 seconds
Complete requests: 10000
Failed requests: 0
Total transferred: 2150000 bytes
Total body sent: 283770000
HTML transferred: 200000 bytes
Requests per second: 13005.81 [#/sec] (mean)
Time per request: 15.378 [ms] (mean)
Time per request: 0.077 [ms] (mean, across all concurrent requests)
Transfer rate: 2730.71 [Kbytes/sec] received
360415.95 kb/s sent
363146.67 kb/s total
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 5 1.6 5 12
Processing: 2 10 5.4 9 59
Waiting: 2 8 5.2 7 56
Total: 3 15 5.7 14 68
Percentage of the requests served within a certain time (ms)
50% 14
66% 15
75% 16
80% 17
90% 18
95% 23
98% 36
99% 44
100% 68 (longest request)These performance results are not the only ones we have got during API Firewall testing. Other results along with the methods used to improve API Firewall performance are described in this Wallarm's blog article.
License
View license information for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's api-firewall/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
File: arangodb/README.md
Quick reference
Maintained by:
ArangoDBWhere to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Supported tags and respective `Dockerfile` links
Quick reference (cont.)
Where to file issues:
https://github.com/arangodb/arangodb-docker/issuesPublished image artifact details:
repo-info repo'srepos/arangodb/directory (history)
(image metadata, transfer size, etc)Image updates:
official-images repo'slibrary/arangodblabel
official-images repo'slibrary/arangodbfile (history)Source of this description:
docs repo'sarangodb/directory (history)
What is ArangoDB?
ArangoDB is a scalable graph database system to drive value from connected data, faster. Native graphs, an integrated search engine, and JSON support, via a single query language.
ArangoDB runs everywhere: On-prem, in the cloud, and as a managed cloud service: ArangoGraph Insights Platform.
Key Features in ArangoDB
Native Graph Store both data and relationships, for faster queries even with multiple levels of joins and deeper insights that simply aren't possible with traditional relational and document database systems.
Document Store Every node in your graph is a JSON document: flexible, extensible, and easily imported from your existing document database.
ArangoSearch Natively integrated cross-platform indexing, text-search and ranking engine for information retrieval, optimized for speed and memory.
ArangoDB Documentation
How to use this image
Start an ArangoDB instance
In order to start an ArangoDB instance, run:
docker run -d -p 8529:8529 -e ARANGO_RANDOM_ROOT_PASSWORD=1 --name arangodb-instance arangodbDocker chooses the processor architecture for the image that matches your host CPU by default. If this is not the case, for example, because you have the DOCKER_DEFAULT_PLATFORM environment variable set to a different architecture, you can pass the --platform flag to the docker run command to specify the appropriate operating system and architecture for the container. For x86-64, use linux/amd64. On ARM, especially Apple silicon with no emulation for the required AVX instruction set extension, use linux/arm64/v8:
docker run -d -p 8529:8529 -e ARANGO_RANDOM_ROOT_PASSWORD=1 --name arangodb-instance --platform linux/arm64/v8 arangodbThis creates and launches the arangodb Docker instance as a background process. The Identifier of the process is printed. By default, ArangoDB listens on port 8529 for requests.
In order to get the IP ArangoDB listens on, run:
docker inspect --format '{{ .NetworkSettings.IPAddress }}' arangodb-instanceInitialize the server language
When using Docker, you need to specify the language you want to initialize the server to on the first run in one of the following ways:
Set the environment variable
LANGto a locale in thedocker runcommand, e.g.-e LANG=svfor a Swedish locale.Use an
arangod.confconfiguration file that sets a language and mount it into the container. For example, create a configuration file on your host system in which you seticu-language = svat the top (before any[section]) and then mount the file over the default configuration file likedocker run -v /your-host-path/arangod.conf:/etc/arangodb3/arangod.conf ....
If you don't specify a language explicitly, the default is en_US up to ArangoDB v3.11 and en_US_POSIX from ArangoDB v3.12 onward.
Using the instance
To use the running instance from an application, link the container:
docker run -e ARANGO_RANDOM_ROOT_PASSWORD=1 --name my-app --link arangodb-instance:db-link arangodbThis uses the instance named arangodb-instance and links it into the application container. The application container contains environment variables, which can be used to access the database.
DB_LINK_PORT_8529_TCP=tcp://172.17.0.17:8529
DB_LINK_PORT_8529_TCP_ADDR=172.17.0.17
DB_LINK_PORT_8529_TCP_PORT=8529
DB_LINK_PORT_8529_TCP_PROTO=tcp
DB_LINK_NAME=/naughty_ardinghelli/db-linkExposing the port to the outside world
If you want to expose the port to the outside world, run:
docker run -e ARANGO_RANDOM_ROOT_PASSWORD=1 -p 8529:8529 -d arangodbArangoDB listen on port 8529 for request and the image includes EXPOSE 8529. The -p 8529:8529 exposes this port on the host.
Choosing an authentication method
The ArangoDB image provides several authentication methods which can be specified via environment variables (-e) when using docker run
ARANGO_RANDOM_ROOT_PASSWORD=1Generate a random root password when starting. The password will be printed to stdout (may be inspected later using
docker logs)ARANGO_NO_AUTH=1Disable authentication. Useful for testing.
WARNING Doing so in production will expose all your data. Make sure that ArangoDB is not directly accessible from the internet!
ARANGO_ROOT_PASSWORD=somepasswordSpecify your own root password.
Note: this way of specifying logins only applies to single server installations. With clusters you have to provision the users via the root user with empty password once the system is up.
Command line options
You can pass arguments to the ArangoDB server by appending them to the end of the Docker command:
docker run -e ARANGO_RANDOM_ROOT_PASSWORD=1 arangodb --helpThe entrypoint script starts the arangod binary by default and forwards your arguments.
You may also start other binaries, such as the ArangoShell:
docker run -it arangodb arangosh --server.database myDB ...Note that you need to set up networking for containers if arangod runs in one container and you want to access it with arangosh running in another container. It is easier to execute it in the same container instead. Use docker ps to find out the container ID / name of a running container:
docker psIt prints something similar to the following:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1234567890ab arangodb "/entrypoint.sh aran…" 2 hours ago Up 2 hours 0.0.0.0:8529->8529/tcp jolly_jokerThen use docker exec and the ID / name to run something inside of the existing container:
docker exec -it jolly_joker arangoshFor more information, see the ArangoDB documentation about Configuration.
Limiting resource utilization
arangod checks the following environment variables, which can be used to restrict how much memory and how many CPU cores it should use:
ARANGODB_OVERRIDE_DETECTED_TOTAL_MEMORY(introduced in v3.6.3)This variable can be used to override the automatic detection of the total amount of RAM present on the system. One can specify a decimal number (in bytes). Furthermore, if
Gorgis appended, the value is multiplied by2^30. IfMormis appended, the value is multiplied by2^20. IfKorkis appended, the value is multiplied by2^10. That is,64Gmeans 64 gigabytes.The total amount of RAM detected is logged as an INFO message at server start. If the variable is set, the overridden value is shown. Various default sizes are calculated based on this value (e.g. RocksDB buffer cache size).
Setting this option can in particular be useful in two cases:
- If
arangodis running in a container and its cgroup has a RAM limitation, then one should specify this limitation in this environment variable, since it is currently not automatically detected. - If
arangodis running alongside other services on the same machine and thus sharing the RAM with them, one should limit the amount of memory using this environment variable.
- If
ARANGODB_OVERRIDE_DETECTED_NUMBER_OF_CORES(introduced in v3.7.1)This variable can be used to override the automatic detection of the number of CPU cores present on the system.
The number of CPU cores detected is logged as an INFO message at server start. If the variable is set, the overridden value is shown. Various default values for threading are calculated based on this value.
Setting this option is useful if
arangodis running in a container or alongside other services on the same machine and shall not use all available CPUs.
Persistent Data
ArangoDB supports two different storage engines from version 3.2 to 3.6. You can choose them while instantiating the container with the environment variable ARANGO_STORAGE_ENGINE. With mmfiles you choose the classic storage engine (not available in 3.7 and later), rocksdb will choose the storage engine based on RocksDB. The default choice is rocksdb from version 3.4 on.
ArangoDB uses the volume /var/lib/arangodb3 as database directory to store the collection data and the volume /var/lib/arangodb3-apps as apps directory to store any extensions. These directories are marked as docker volumes.
See docker inspect --format "{{ .Config.Volumes }}" arangodb for all volumes.
A good explanation about persistence and docker container can be found here: Docker In-depth: Volumes, Why Docker Data Containers are Good
Using host directories
You can map the container's volumes to a directory on the host, so that the data is kept between runs of the container. This path /tmp/arangodb is in general not the correct place to store you persistent files - it is just an example!
unix> mkdir /tmp/arangodb
unix> docker run -e ARANGO_RANDOM_ROOT_PASSWORD=1 -p 8529:8529 -d \
-v /tmp/arangodb:/var/lib/arangodb3 \
arangodbThis will use the /tmp/arangodb directory of the host as database directory for ArangoDB inside the container.
Using a data container
Alternatively you can create a container holding the data.
docker create --name arangodb-persist arangodb trueAnd use this data container in your ArangoDB container.
docker run -e ARANGO_RANDOM_ROOT_PASSWORD=1 --volumes-from arangodb-persist -p 8529:8529 arangodbIf want to save a few bytes you can alternatively use busybox or alpine for creating the volume only containers. Please note that you need to provide the used volumes in this case. For example
docker run -d --name arangodb-persist -v /var/lib/arangodb3 busybox trueUsage as a base image
If you are using the image as a base image please make sure to wrap any CMD in the exec form. Otherwise the default entrypoint will not do its bootstrapping work.
When deriving the image, you can control the instantiation via putting files into /docker-entrypoint-initdb.d/.
*.sh- files ending with .sh will be run as a bash shellscript.*.js- files will be executed with arangosh. You can specify additional arangosh arguments via theARANGOSH_ARGSenvironment variable.dumps/- in this directory you can place subdirectories containing database dumps generated using arangodump. They can be restored using arangorestore.
License
The official Docker images of the ArangoDB Community Edition are governed by the ArangoDB Community License. It limits deployments to a 100 GB on dataset size in production and you cannot use it for any commercial purposes, only internal business purposes. It does not include the right to distribute, embed within other products, or combine with ArangoDB's Enterprise Edition of the software.
The source code of the Community Edition is available under the Business Source License 1.1 (BUSL-1.1). Copying, modification, redistribution, non-commercial use, and commercial use in a non-production context are always allowed. Additionally, you can deploy BUSL-licensed ArangoDB source code for any purpose (including production) as long as you are not creating a commercial derivative work or offering, or are including it in a commercial product, application, or service. On the fourth anniversary of the first publicly available distribution of a specific version, the license changes to the permissive Apache 2.0 open-source license.
Up to ArangoDB version 3.11, ArangoDB is licensed under the Apache 2.0 License.
ArangoDB contains software of third parties under their respective licenses.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's arangodb/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
2. Official Technical Reference & Guides (docker-library/docs)
File: README.md
What is this?
This repository contains the image documentation for each of the Docker Official Images. See docker-library/official-images for more information about the program in general.
All Markdown files here are run through tianon's fork of markdownfmt, and verified as formatted correctly via GitHub Actions.
Table of Contents
- What is this?
- How do I update an image's docs
- How do I add a new image's docs
- Files related to an image's docs
- Files for main Docs repo
- Scripts unrelated to templates
- Issues and Contributing
How do I update an image's docs
Edit the content.md for an image; not the README.md as it's auto-generated from the contents of the other files in that repo. To see the changes to the README.md, run ./update.sh myimage from the repo root, but do not add the README.md changes to your pull request. See also markdownfmt.sh point below.
After opening your Pull Request the changes will be checked by an automated markdownfmt.sh before it can be merged. A common issue is incorrect spacing such as with two lines missing an empty line between them (double-spaced).
How do I add a new image's docs
- Create a folder for my image:
mkdir myimage - Create a
README-short.txt(required, 100 char max) - Create a
content.md(required) - Create a
license.md(required) - Create a
maintainer.md(required) - Create a
github-repo(required) - Create a
metadata.json(required) - Add a
logo.png(recommended)
Optionally:
- Run
./markdownfmt.sh -l myimageto list any files that are non-compliant totianon/markdownfmt.
Any files in the list will result in a failed build during continuous integration.- run
./markdownfmt.sh -d myimageto see a diff of changes required to pass.
- run
- Run
./update.sh myimageto generatemyimage/README.mdfor manual review of the generated copy.
Note: do not actually commit theREADME.mdfile; it is automatically generated/committed before being uploaded to Docker Hub.
Files related to an image's docs
folder ``
This is where all the partial (e.g. content.md) and generated files (e.g. README.md) for a given image reside, (e.g. golang/). It must match the name of the image used in docker-library/official-images.
`README.md`
This file is generated using update.sh. Do not commit or edit this file; it is regenerated periodically by a bot.
`content.md`
This file contains the main content of your image's long description. The basic parts you should have are a "What Is" section and a "How To" section. The following is a basic layout:
# What is XYZ?
// about what the contained software is
%%LOGO%%
# How to use this image
// descriptions and examples of common use cases for the image
// make use of subsections as necessary`get-help.md`
This file is an optional override of the default get-help.md. This is the content of the "Where to get help" part of the "Quick reference" at the top of the generated README. We recommend linking to the best places for community support like forums, chat rooms, or mailing lists.
`github-repo`
This file should contain the URL to the GitHub repository for the Dockerfiles that become the images. The file should be in a single line ending in a newline with no extraneous whitespace. Only one GitHub repo per image repository is supported. It is used in generating links. Here is an example for golang:
https://github.com/docker-library/golang`license.md`
This file should contain a link to the license for the main software in the image. Here is an example for golang:
View [license information](http://golang.org/LICENSE) for the software contained in this image.`logo.png`
Logo for the contained software. While there are not hard rules on formatting, most existing logos are square or landscape and stay within a few hundred pixels of width. Alternatively, a logo.svg can be used instead, but only one logo file will apply. To use it within content.md, put %%LOGO%% as shown above in the basic content.md layout.
The image is automatically scaled to a 120 pixel square for the top of the Docker Hub page and Hub search results.
`maintainer.md`
This file should contain a link to the maintainers of the Dockerfile.
`metadata.json`
This file contains data about the repo for Docker Hub. The minimum file is defined below. ./metadata.sh [repo-name] must be used to correctly format it (use -w to apply its suggested format changes). Only three sorted unique Docker Hub categories are allowed. metadata.json in the root contains the list of categories to choose from. See descriptions for the categories on the Docker docs site.
{
"hub": {
"categories": []
}
}`README-short.txt`
This is the short description for the Docker Hub, limited to 100 characters in a single line.
Go (golang) is a general purpose, higher-level, imperative programming language.
`compose.yaml`
This optional file contains a small, working Compose file showing off how to use the image. To use the compose.yaml, add %%COMPOSE%% to the content.md and this will embed the YAML.
Other official images may be referenced within the YAML to demonstrate the functionality of the image, but no images external to the Docker Official Images program may be referenced.
Files for main Docs repo
`update.sh`
This is the main script used to generate the README.md files for each image. The generated file is committed along with the files used to generate it. Accepted arguments are which image(s) you want to update or no arguments to update all of them.
This script assumes bashbrew is in your PATH (for scraping relevant tag information from the library manifest file for each repository).
`markdownfmt.sh` and `ymlfmt.sh`
These two scripts are for verifying the formatting of Markdown (.md) and YAML (.yml) files, respectively. markdownfmt.sh uses the tianon/markdownfmt image and ymlfmt.sh uses the tianon/ymlfmt image.
`.template-helpers/generate-dockerfile-links-partial.sh`
This script is used by update.sh to create the "Supported tags and respective Dockerfile links" section of each generated README.md from the information in the official-images library/ manifests.
`.template-helpers/`
The scripts and Markdown files in here are used in building an image's README.md file in combination with its individual files.
Scripts unrelated to templates
`generate-repo-stub-readme.sh`
This is used to generate a simple README.md to put in the image's repo. We use this in Git repositories within https://github.com/docker-library to simplify our maintenance, but it is not required for anyone else. The only argument is the name of the image (or repo), like golang and it then outputs the readme to standard out.
`push.pl` and `push.sh`
These are used by us to push the actual content of the READMEs to the Docker Hub as special access is required to modify the Hub description contents. The Dockerfile is used to create a suitable environment for push.pl.
Issues and Contributing
If you would like to make a new Official Image, be sure to follow the guidelines.
Feel free to make a pull request for fixes and improvements to current documentation. For questions or problems on this repo come talk to us via the #docker-library IRC channel on Libera.Chat or open up an issue.
File: adminer/README.md
Quick reference
Maintained by:
Tim Düsterhus (of the Docker Community)Where to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Supported tags and respective `Dockerfile` links
Quick reference (cont.)
Where to file issues:
https://github.com/TimWolla/docker-adminer/issuesSupported architectures: (more info)
amd64,arm32v6,arm32v7,arm64v8,i386,ppc64le,riscv64,s390xPublished image artifact details:
repo-info repo'srepos/adminer/directory (history)
(image metadata, transfer size, etc)Image updates:
official-images repo'slibrary/adminerlabel
official-images repo'slibrary/adminerfile (history)Source of this description:
docs repo'sadminer/directory (history)
Adminer
What is Adminer?
Adminer (formerly phpMinAdmin) is a full-featured database management tool written in PHP. Conversely to phpMyAdmin, it consist of a single file ready to deploy to the target server. Adminer is available for MySQL, PostgreSQL, SQLite, MS SQL, Oracle, Firebird, SimpleDB, Elasticsearch and MongoDB.
How to use this image
Standalone
$ docker run --link some_database:db -p 8080:8080 adminerThen you can hit http://localhost:8080 or http://host-ip:8080 in your browser.
FastCGI
If you are already running a FastCGI capable web server you might prefer running Adminer via FastCGI:
$ docker run --link some_database:db -p 9000:9000 adminer:fastcgiThen point your web server to port 9000 of the container.
Note: This exposes the FastCGI socket to the Internet. Make sure to add proper firewall rules or use a private Docker network instead to prevent a direct access.
... via [`docker compose`](https://github.com/docker/compose)
Example compose.yaml for adminer:
# Use root/example as user/password credentials
services:
adminer:
image: adminer
restart: always
ports:
- 8080:8080
db:
image: mysql:5.6
restart: always
environment:
MYSQL_ROOT_PASSWORD: exampleRun docker compose up, wait for it to initialize completely, and visit http://localhost:8080 or http://host-ip:8080 (as appropriate).
Loading plugins
This image bundles all official Adminer plugins. You can find the list of plugins on GitHub: https://github.com/vrana/adminer/tree/master/plugins.
To load plugins you can pass a list of filenames in ADMINER_PLUGINS:
$ docker run --link some_database:db -p 8080:8080 -e ADMINER_PLUGINS='tables-filter tinymce' adminerIf a plugin requires parameters to work correctly instead of adding the plugin to ADMINER_PLUGINS, you need to add a custom file to the container:
$ docker run --link some_database:db -p 8080:8080 -e ADMINER_PLUGINS='login-servers' adminer
Unable to load plugin file "login-servers", because it has required parameters: servers
Create a file "/var/www/html/plugins-enabled/login-servers.php" with the following contents to load the plugin:
<?php
require_once('plugins/login-servers.php');
/** Set supported servers
* @param array array($domain) or array($domain => $description) or array($category => array())
* @param string
*/
return new AdminerLoginServers(
$servers = ???,
$driver = 'server'
);To load a custom plugin you can add PHP scripts that return the instance of the plugin object to /var/www/html/plugins-enabled/.
Choosing a design
The image bundles all the designs that are available in the source package of adminer. You can find the list of designs on GitHub: https://github.com/vrana/adminer/tree/master/designs.
To use a bundled design you can pass its name in ADMINER_DESIGN:
$ docker run --link some_database:db -p 8080:8080 -e ADMINER_DESIGN='nette' adminerTo use a custom design you can add a file called /var/www/html/adminer.css.
Usage with external server
You can specify the default host with the ADMINER_DEFAULT_SERVER environment variable. This is useful if you are connecting to an external server or a docker container named something other than the default db.
docker run -p 8080:8080 -e ADMINER_DEFAULT_SERVER=mysql adminerSupported Drivers
While Adminer supports a wide range of database drivers this image only supports the following out of the box:
- MySQL
- PostgreSQL
- SQLite
- SimpleDB
- Elasticsearch
To add support for the other drivers you will need to install the following PHP extensions on top of this image:
pdo_dblib(MS SQL)oci8(Oracle)interbase(Firebird)mongodb(MongoDB)
License
View license information for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's adminer/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
File: aerospike/README.md
Quick reference
Maintained by:
Aerospike, Inc.Where to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Supported tags and respective `Dockerfile` links
Quick reference (cont.)
Where to file issues:
the Aerospike Forums or GitHubPublished image artifact details:
repo-info repo'srepos/aerospike/directory (history)
(image metadata, transfer size, etc)Image updates:
official-images repo'slibrary/aerospikelabel
official-images repo'slibrary/aerospikefile (history)Source of this description:
docs repo'saerospike/directory (history)
Aerospike Database Docker Images
What is Aerospike?
Aerospike is a distributed NoSQL database purposefully designed for high performance web scale applications. Aerospike supports key-value and document data models, and has multiple data types including List, Map, HyperLogLog, GeoJSON, and Blob. Aerospike's patented hybrid memory architecture delivers predictable high performance at scale and high data density per node.
Getting Started
Aerospike Enterprise Edition requires a feature key file to start and to ungate certain features in the database, such as compression. Enterprise customers can use their production or development keys.
Anyone can sign up to get an evaluation feature key file for a full-featured, single-node Aerospike Enterprise Edition.
Aerospike Community Edition supports the same developer APIs as Aerospike Enterprise Edition, and differs in ease of operation and enterprise features. See the product matrix for more.
Running an Aerospike EE node with a feature key file in a mapped directory
docker run -d -v DIR:/opt/aerospike/etc/ -e "FEATURE_KEY_FILE=/opt/aerospike/etc/features.conf" --name aerospike -p 3000-3002:3000-3002 aerospike:ee-[version]Above, DIR is a directory on your machine where you drop your feature key file. Make sure Docker Desktop has file sharing permission to bind mount it into Docker containers.
Running a node with a feature key file in an environment variable
FEATKEY=$(base64 ~/Desktop/evaluation-features.conf)
docker run -d -e "FEATURES=$FEATKEY" -e "FEATURE_KEY_FILE=env-b64:FEATURES" --name aerospike -p 3000-3002:3000-3002 aerospike:ee-[version]Running an Aerospike CE node
docker run -d --name aerospike -p 3000-3002:3000-3002 aerospike:ce-[version]Advanced Configuration
The Aerospike Docker image has a default configuration file template that can be populated with individual configuration parameters, as we did before with FEATURE_KEY_FILE. Alternatively, it can be replaced with a custom configuration file.
The following sections describe both advanced options.
Injecting configuration parameters
You can inject parameters into the configuration template using container-side environment variables with the -e flag.
For example, to set the default namespace name to demo:
docker run -d --name aerospike -e "NAMESPACE=demo" -p 3000-3002:3000-3002 -v /my/dir:/opt/aerospike/etc/ -e "FEATURE_KEY_FILE=/opt/aerospike/etc/features.conf" aerospike:ee-[version]Injecting configuration parameters into the configuration template isn't compatible with using a custom configuration file. You can use one or the other.
List of template variables
FEATURE_KEY_FILE- thefeature_key_fileis only required for the EE image. Default: /etc/aerospike/features.confSERVICE_THREADS- theservice_threads. Default: Number of vCPUsLOGFILE- thefileparam of theloggingcontext. Default: /dev/null, do not log to file, log to stdoutSERVICE_ADDRESS- the bindaddressof thenetworking.servicesubcontext. Default: anySERVICE_PORT- theportof thenetworking.servicesubcontext. Default: 3000HB_ADDRESS- thenetworking.heartbeataddressfor cross cluster mesh. Default: anyHB_PORT- theportfornetworking.heartbeatcommunications. Default: 3002FABRIC_ADDRESS- theaddressof thenetworking.fabricsubcontext. Default: anyFABRIC_PORT- theportof thenetworking.fabricsubcontext. Default: 3001
The single preconfigured namespace is in-memory with filesystem persistence
NAMESPACE- the name of the namespace. Default: testREPL_FACTOR- the namespacereplication-factor. Default: 2MEM_GB- the namespacememory-size. Default: 1, the unit is alwaysG(GB)DEFAULT_TTL- the namespacedefault-ttl. Default: 30dSTORAGE_GB- the namespace persistencefilesize. Default: 4, the unit is alwaysG(GB)NSUP_PERIOD- the namespacensup-period. Default: 120 , nsup-period in seconds
Using a custom configuration file
You can override the use of the configuration file template by providing your own aerospike.conf, as described in Configuring Aerospike Database.
You should first -v map a local directory, which Docker will bind mount. Next, drop your aerospike.conf file into this directory. Finally, use the --config-file option to tell Aerospike where in the container the configuration file is (the default path is /etc/aerospike/aerospike.conf). Remember that the feature key file is required, so use feature-key-file in your config file to point to a mounted path (such as /opt/aerospike/etc/feature.conf).
For example:
docker run -d -v /opt/aerospike/etc/:/opt/aerospike/etc/ --name aerospike -p 3000-3002:3000-3002 aerospike:ee-[version] --config-file /opt/aerospike/etc/aerospike.confPersistent Data Directory
With Docker, the files within the container are not persisted past the life of the container. To persist data, you will want to mount a directory from the host to the container's /opt/aerospike/data using the -v option:
For example:
docker run -d -v /opt/aerospike/data:/opt/aerospike/data -v /opt/aerospike/etc:/opt/aerospike/etc/ --name aerospike -p 3000-3002:3000-3002 -e "FEATURE_KEY_FILE=/opt/aerospike/etc/features.conf" aerospike:ee-[version]The example above uses the configuration template, where the single defined namespace is in-memory with file-based persistence. Just mounting the predefined /opt/aerospike/data directory enables the data to be persisted on the host.
Alternatively, a custom configuration file is used with the parameter file set to be a file in the mounted /opt/aerospike/data, such as in the following config snippet:
namespace test {
# :
storage-engine device {
file /opt/aerospike/data/test.dat
filesize 4G
data-in-memory true
}
}In this example we also mount the data directory in a similar way, using a custom configuration file.
docker run -d -v /opt/aerospike/data:/opt/aerospike/data -v /opt/aerospike/etc/:/opt/aerospike/etc/ --name aerospike -p 3000-3002:3000-3002 aerospike:ee-[version] --config-file /opt/aerospike/etc/aerospike.confBlock Storage
Docker provides an ability to expose a host's block devices to a running container. The --device option can be used to map a host block device within a container.
Update the storage-engine device section of the namespace in the custom aerospike configuration file.
namespace test {
# :
storage-engine device {
device /dev/xvdc
write-block-size 128k
}
}Now to map a host drive /dev/sdc to /dev/xvdc on a container
docker run -d --device '/dev/sdc:/dev/xvdc' -v /opt/aerospike/etc/:/opt/aerospike/etc/ --name aerospike -p 3000-3002:3000-3002 aerospike:ee-[version] --config-file /opt/aerospike/etc/aerospike.confPersistent Lua Cache
Upon restart, your lua cache will become emptied. To persist the cache, you will want to mount a directory from the host to the container's /opt/aerospike/usr/udf/lua using the -v option:
docker run -d -v /opt/aerospike/lua:/opt/aerospike/usr/udf/lua -v /opt/aerospike/data:/opt/aerospike/data --name aerospike -p 3000-3002:3000-3002 -e "FEATURE_KEY_FILE=/opt/etc/aerospike/features.conf" aerospike:ee-[version]Clustering
Developers using the Aerospike EE single-node evaluation, and most others using Docker Desktop on their machine for development, will not need to configure the node for clustering. If you're interested in using clustering and have a feature key file without a single node limit, read the following sections.
Configuring the node's access address
In order for the Aerospike node to properly broadcast its address to the cluster and applications, the access-address configuration parameter needs to be set in the configuration file. If it is not set, then the IP address within the container will be used, which is not accessible to other nodes.
network {
service {
address any # Listening IP Address
port 3000 # Listening Port
access-address 192.168.1.100 # IP Address used by cluster nodes and applications
}Mesh Clustering
Mesh networking requires setting up links between each node in the cluster. This can be achieved in two ways:
- Add a configuration for each node in the cluster, as defined in Network Heartbeat Configuration.
- Use
asinfoto send thetipcommand, to make the node aware of another node, as defined in tip command in asinfo.
For more, see How do I get a 2 nodes Aerospike cluster running quickly in Docker without editing a single file?
Image Versions
These images are based on ubuntu:24.04.
ee-[version]
These tags are for Aerospike EE images, and will require a feature key file, such as the one you get with the single-node EE evaluation, or one associated with a commercial enterprise license agreement.
ce-[version]
These tags are for Aerospike CE images, and do not require a feature key file to start. As mentioned above, the developer API for both is the same, but the editions differ in operational features.
Reporting Issues
If you have any problems with or questions about this image, please post on the Aerospike discussion forum.
Enterprise customers are welcome to participate in the community forum, but can also report issues through the enterprise support system.
Aerospike EE evaluation users can open an issue in aerospike/aerospike-server-enterprise.docker.
Aerospike CE users can open an issue in aerospike/aerospike-server.docker.
License
Copyright 2019-2021 Aerospike, Inc.
If you are using a feature key file you received as part of your commercial enterprise license, you are operating under the Aerospike Master License Agreement.
If you are using the Aerospike Database EE evaluation feature key file, you are operating under the Aerospike Evaluation License Agreement.
If you are using Aerospike Database CE refer to the license information in the aerospike/aerospike-server repository.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's aerospike/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
File: almalinux/README.md
Quick reference
Maintained by:
The AlmaLinux OS FoundationWhere to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Supported tags and respective `Dockerfile` links
Quick reference (cont.)
Where to file issues:
https://bugs.almalinux.org or GitHubSupported architectures: (more info)
amd64,arm64v8,i386,ppc64le,riscv64,s390xPublished image artifact details:
repo-info repo'srepos/almalinux/directory (history)
(image metadata, transfer size, etc)Image updates:
official-images repo'slibrary/almalinuxlabel
official-images repo'slibrary/almalinuxfile (history)Source of this description:
docs repo'salmalinux/directory (history)
AlmaLinux OS
AlmaLinux OS is an Open Source and forever-free enterprise Linux distribution, governed and driven by the community, focused on long-term stability and a robust production-grade platform. AlmaLinux OS is binary compatible with RHEL®, and it was founded by the team behind the well-established CloudLinux OS. Today, the AlmaLinux OS Foundation, run by a community-elected board of directors, owns and manages the operating system.
About this image
Platform image
The default (platform) image is a general-purpose image with a full DNF stack and basic tools like find, tar, vi, etc.
The almalinux:latest tag will always point to the latest stable release of the default image. Major releases and minor releases are also tagged with their version (e.g. almalinux:8 or almalinux:8.4).
Minimal image
The minimal image is a stripped-down image that uses the microdnf package manager and contains a very limited package set. It is designed for applications that come with their own dependencies bundled (e.g. NodeJS, Python).
The almalinux:minimal tag always points to the most recent version of the minimal image. Tags for major (e.g. almalinux:8-minimal) and minor (e.g. almalinux:8.4-minimal) releases are also available.
Upgrade policy
All images for supported releases will be updated monthly or as needed for security fixes.
How It's Made
The rootfs tarballs for this image are built using the livemedia-creator tool. The build script and kickstart files are available in the AlmaLinux/docker-images git repository.
License
View license information for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's almalinux/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
File: alpine/README.md
Quick reference
Maintained by:
Natanael Copa (an Alpine Linux maintainer)Where to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Supported tags and respective `Dockerfile` links
Quick reference (cont.)
Where to file issues:
https://github.com/alpinelinux/docker-alpine/issuesSupported architectures: (more info)
amd64,arm32v6,arm32v7,arm64v8,i386,ppc64le,riscv64,s390xPublished image artifact details:
repo-info repo'srepos/alpine/directory (history)
(image metadata, transfer size, etc)Image updates:
official-images repo'slibrary/alpinelabel
official-images repo'slibrary/alpinefile (history)Source of this description:
docs repo'salpine/directory (history)
What is Alpine Linux?
Alpine Linux is a Linux distribution built around musl libc and BusyBox. The image is only 5 MB in size and has access to a package repository that is much more complete than other BusyBox based images. This makes Alpine Linux a great image base for utilities and even production applications. Read more about Alpine Linux here and you can see how their mantra fits in right at home with Docker images.
How to use this image
Usage
Use like you would any other base image:
FROM alpine:3.14
RUN apk add --no-cache mysql-client
ENTRYPOINT ["mysql"]This example has a virtual image size of only 36.8MB. Compare that to our good friend Ubuntu:
FROM ubuntu:20.04
RUN apt-get update \
&& apt-get install -y --no-install-recommends mysql-client \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["mysql"]This yields us a virtual image size of about 145MB image.
License
View license information for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's alpine/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
File: alt/README.md
Quick reference
Maintained by:
The ALT Linux Team CloudWhere to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Supported tags and respective `Dockerfile` links
Quick reference (cont.)
- Where to file issues:
First of all, please, make sure that the developers are not aware of the bug in ALT bugzilla.
For create new bug, please use ALT's bugzilla page (choose Official image as component and include details about image problems in the description) or GitHub.
Supported architectures: (more info)
amd64,arm64v8,i386,riscv64Published image artifact details:
repo-info repo'srepos/alt/directory (history)
(image metadata, transfer size, etc)Image updates:
official-images repo'slibrary/altlabel
official-images repo'slibrary/altfile (history)Source of this description:
docs repo'salt/directory (history)
ALT Linux
This image serves as the official ALT image for the ALT Linux.
ALT Linux Team
ALT Linux Team is an international community numbering over 200 free software developers.
Sisyphus
Sisyphus is a daily updated repository which serves as a basis for all ALT distributions. Sisyphus integrity supported by the ALT Linux Team, the original software packaging technology, and apt-get (apt-rpm) utility allows users to easily update the system and be aware of any news on the free software. This daily updated repository contains the latest software with all its benefits and pitfalls (latent sometimes).
The name Sisyphus comes from the Greek mythology. Uninterrupted efforts on improvement of technologies set in the repository make ALT Linux Team similar to tireless Sisyphus continuously rolling stones up the hill.
About Platform 9
As said above, Sisyphus is a frequently updated repository mainly designed for developers. Stable distributions by ALT are the best solution for those users preferring stability and predictability of the system to its functionality (primarily new and corporate users). Such stable distributions are based on stable Sisyphus repository slices called platforms. Platform 9 (p9) was created in June, 2019, and will be supported till December, 2022.
About this image
The alt:latest tag will always point the latest stable release (which is, at the time of this writing, alt:p9).
How It's Made
This image was created with the help of mkimage and hasher tools.
Mkimage is a tool used to create images with Linux kernel from the set Sisyphus-like repository. Mkimage uses a set of Makefiles and shell hooks.
Hasher is a tool used for safe and repeatable packaging in clean and controllable environment. This is achieved through creation of a minimum build environment in chroot, installation of all necessary packaging dependencies there, and packet assembly in the new environment. Every package requires a new build environment.
License
View license information for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's alt/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
File: amazoncorretto/README.md
Quick reference
Maintained by:
the AWS JDK teamWhere to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Supported tags and respective `Dockerfile` links
8-al2,8u504-al2,8-al2-full,8-al2-jdk,8-al2-generic,8u504-al2-generic,8-al2-generic-jdk8-al2023,8u504-al2023,8-al2023-jdk,8,8-jdk,8u504,latest8-alpine3.21,8u504-alpine3.21,8-alpine3.21-full,8-alpine3.21-jdk8-alpine3.22,8u504-alpine3.22,8-alpine3.22-full,8-alpine3.22-jdk8-alpine3.23,8u504-alpine3.23,8-alpine3.23-full,8-alpine3.23-jdk8-alpine3.24-jre,8u504-alpine3.24-jre,8-alpine-jre,8u504-alpine-jre11-al2023,11.0.32-al2023,11-al2023-jdk,11,11-jdk,11.0.3211-alpine3.21,11.0.32-alpine3.21,11-alpine3.21-full,11-alpine3.21-jdk11-alpine3.22,11.0.32-alpine3.22,11-alpine3.22-full,11-alpine3.22-jdk11-alpine3.23,11.0.32-alpine3.23,11-alpine3.23-full,11-alpine3.23-jdk17-al2023,17.0.20-al2023,17-al2023-jdk,17,17-jdk,17.0.2017-alpine3.21,17.0.20-alpine3.21,17-alpine3.21-full,17-alpine3.21-jdk17-alpine3.22,17.0.20-alpine3.22,17-alpine3.22-full,17-alpine3.22-jdk17-alpine3.23,17.0.20-alpine3.23,17-alpine3.23-full,17-alpine3.23-jdk21-al2023,21.0.12-al2023,21-al2023-jdk,21,21-jdk,21.0.1221-alpine3.21,21.0.12-alpine3.21,21-alpine3.21-full,21-alpine3.21-jdk21-alpine3.22,21.0.12-alpine3.22,21-alpine3.22-full,21-alpine3.22-jdk21-alpine3.23,21.0.12-alpine3.23,21-alpine3.23-full,21-alpine3.23-jdk25-alpine3.21,25.0.4-alpine3.21,25-alpine3.21-full,25-alpine3.21-jdk25-alpine3.22,25.0.4-alpine3.22,25-alpine3.22-full,25-alpine3.22-jdk25-alpine3.23,25.0.4-alpine3.23,25-alpine3.23-full,25-alpine3.23-jdk26-alpine3.21,26.0.2-alpine3.21,26-alpine3.21-full,26-alpine3.21-jdk26-alpine3.22,26.0.2-alpine3.22,26-alpine3.22-full,26-alpine3.22-jdk26-alpine3.23,26.0.2-alpine3.23,26-alpine3.23-full,26-alpine3.23-jdk
Quick reference (cont.)
Where to file issues:
https://github.com/corretto/corretto-docker/issuesPublished image artifact details:
repo-info repo'srepos/amazoncorretto/directory (history)
(image metadata, transfer size, etc)Image updates:
official-images repo'slibrary/amazoncorrettolabel
official-images repo'slibrary/amazoncorrettofile (history)Source of this description:
docs repo'samazoncorretto/directory (history)
What is Amazon Corretto?
Corretto is a binary distribution of the Open Java Development Kit (OpenJDK) with long-term support from Amazon. Corretto is certified using the Java Technical Compatibility Kit (TCK) to ensure it meets the Java SE standard and is available on Linux, Windows, and macOS. It includes patches from Amazon that have proven useful in running our own services.
Why should I use Corretto?
Corretto is a reliable binary distribution of OpenJDK with the assurance of long-term support provided at no cost to you. Amazon runs Corretto internally on thousands of production services. Every modification we make to Corretto fixes or mitigates a problem we found running OpenJDK. Amazon also plans to apply urgent fixes (including security) when they are available and ready to use, outside of the regular quarterly cycle.
How is Corretto different from OpenJDK?
Corretto is a distribution of Open JDK with patches included by Amazon that are not yet integrated in the corresponding OpenJDK update projects. We focus on patches that improve performance or stability in OpenJDK, chosen based on Amazon's observations running large services.
What kinds of patches does Amazon intend to include in Corretto?
Patches will include security fixes, performance enhancements (e.g., speeding up frequently used functions), garbage collection scheduling, and preventing out-of-memory situations, as well as improved monitoring, reporting, and thread management.
Is there any cost associated with using Corretto?
Corretto is distributed by Amazon under an Open Source license at no cost to you. It is licensed under the terms of the GNU Public License version 2 with the Class Path Exception (GPLv2 with CPE). Amazon does not charge for its use or distribution.
What is included in Corretto's long-term support?
Amazon will provide security updates for Corretto 8 until at least June 2023. Updates are planned to be released quarterly. Corretto 11, corresponding to OpenJDK 11, will be available during the first half of 2019. Amazon will support Corretto 11 with quarterly updates until at least August 2024.
Can I use Corretto as a drop-in replacement for other JDKs?
Corretto is designed as a drop-in replacement for all Java SE distributions unless you are using features (e.g., Java Flight Recorder) not available in OpenJDK. Once Corretto binaries are installed on a host and correctly invoked to run your Java applications (e.g., using the alternatives command on Linux), existing command-line options, tuning parameters, monitoring, and anything else in place will continue to work as before.
Why does security scanner show that a docker image has a CVE?
If a security scanner reports that an amazoncorretto image includes a CVE, the first recommended action is to pull an updated version of this image.
If no updated image is available, run the appropriate command to update packages for the platform, ie. run "apk -U upgrade" for Alpine or "yum update -y --security" for AmazonLinux in your Dockerfiles or systems to resolve the issue immediately.
If no updated package is available, please treat this as a potential security issue and follow these instructions or email AWS security directly at [email protected].
It is the responsibility of the base docker image supplier to provide timely security updates to images and packages. The amazoncorretto images are automatically rebuilt when a new base image is made available, but we do not make changes to our Dockerfiles to pull in one-off package updates. If a new base image has not yet been made generally available by a base docker image maintainer, please contact that maintainer to request that the issue be addressed.
Note that there are multiple reasons why a CVE may appear to be present in a docker image, as explained in the docker library FAQs.
Image Variants
The amazoncorretto images come in many flavors, each designed for a specific use case.
`amazoncorretto:`
This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as the base to build other images off of.
`amazoncorretto:-alpine`
This image is based on the popular Alpine Linux project, available in the alpine official image. Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general.
This variant is useful when final image size being as small as possible is your primary concern. The main caveat to note is that it does use musl libc instead of glibc and friends, so software will often run into issues depending on the depth of their libc requirements/assumptions. See this Hacker News comment thread for more discussion of the issues that might arise and some pro/con comparisons of using Alpine-based images.
To minimize image size, it's uncommon for additional related tools (such as git or bash) to be included in Alpine-based images. Using this image as a base, add the things you need in your own Dockerfile (see the alpine image description for examples of how to install packages if you are unfamiliar).
License
Amazon Corretto is released under the same open source license as OpenJDK, which is licensed under the GNU Public License version 2 with the Class Path Exception (GPLv2 with CPE).
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's amazoncorretto/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
File: amazonlinux/README.md
**DEPRECATION NOTICE**
The 1, 2018.03, and 2018.03.0.20231218.0 tags of this image are EOL (December 31, 2023 / docker-library/official-images#22075, although the last meaningful update was December 18, 2023). Please migrate to amazonlinux:2023. See the AL2023 migration guide for details.
Quick reference
Maintained by:
the Amazon Linux TeamWhere to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Supported tags and respective `Dockerfile` links
Quick reference (cont.)
Where to file issues:
Published image artifact details:
repo-info repo'srepos/amazonlinux/directory (history)
(image metadata, transfer size, etc)Image updates:
official-images repo'slibrary/amazonlinuxlabel
official-images repo'slibrary/amazonlinuxfile (history)Source of this description:
docs repo'samazonlinux/directory (history)
What is Amazon Linux?
Amazon Linux is provided by Amazon Web Services (AWS). It is designed to provide a stable, secure, and high-performance execution environment for applications running on Amazon EC2. The full distribution includes packages that enable easy integration with AWS, including launch configuration tools and many popular AWS libraries and tools. AWS provides ongoing security and maintenance updates to all instances running Amazon Linux.
The Amazon Linux container image contains a minimal set of packages. To install additional packages, use dnf.
Supported major versions of Amazon Linux:
- Amazon Linux 2023 (recommended, latest)
Amazon Linux 2 reached end of life on June 30, 2026 (see AL2 FAQs). Amazon Linux AMI (AL1) reached end of life on December 31, 2023. Please migrate to Amazon Linux 2023.
For information on security updates for Amazon Linux, please refer to:
Note that Docker Hub's vulnerability scanning for Amazon Linux is currently based on RPM versions, which does not reflect the state of backported patches for vulnerabilities.
What is Amazon Linux 2023?
- Amazon Linux 2023: https://aws.amazon.com/linux/amazon-linux-2023/
- 2023 Release Notes: https://docs.aws.amazon.com/linux/al2023/release-notes/relnotes.html
- FAQs: https://aws.amazon.com/linux/amazon-linux-2023/faqs/
- What's New: https://aws.amazon.com/about-aws/whats-new/2023/03/amazon-linux-2023/
- User Guide: https://docs.aws.amazon.com/linux/al2023/ug/what-is-amazon-linux.html
Where can I run Amazon Linux container images?
You can run Amazon Linux container images in any Docker based environment. Examples include, your laptop, in AWS EC2 instances, and ECS clusters.
What packages are available in the Amazon Linux containers?
Amazon Linux Docker container images contain a subset of the packages in the images for use on EC2 and as VMs in on-premises scenarios. The container images can be configured to use any of the full set of packages in images for EC2 and on-premises use.
Will updates be available for Amazon Linux containers?
Similar to the Amazon Linux images for AWS EC2 and on-premises use, Amazon Linux container images will get ongoing updates from Amazon in the form of security updates, bug fix updates, and other enhancements. Security bulletins for Amazon Linux are available at https://alas.aws.amazon.com/
What support is available for Amazon Linux outside AWS?
- GitHub Issues: https://github.com/amazonlinux/amazon-linux-2023/issues
- Documentation: https://docs.aws.amazon.com/linux/
- Paid Support from AWS: https://aws.amazon.com/premiumsupport/
Will AWS support the current versions of Amazon Linux going forward?
Yes; Amazon Linux 2023 receives ongoing security and maintenance updates. Amazon Linux 2 reached end of life on June 30, 2026, and Amazon Linux AMI (AL1) reached end of life on December 31, 2023. Please migrate to Amazon Linux 2023.
FAQs
Amazon Linux 2023
License
Amazon Linux is available under the GNU General Public License, version 2.0. Individual software packages are available under their own licenses; run rpm -qi [package name] or check /usr/share/doc/[package name]-* and /usr/share/licenses/[package name]-* for details.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's amazonlinux/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
File: api-firewall/README.md
Quick reference
Maintained by:
The Wallarm TeamWhere to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Supported tags and respective `Dockerfile` links
Quick reference (cont.)
Where to file issues:
https://github.com/wallarm/api-firewall/issuesPublished image artifact details:
repo-info repo'srepos/api-firewall/directory (history)
(image metadata, transfer size, etc)Image updates:
official-images repo'slibrary/api-firewalllabel
official-images repo'slibrary/api-firewallfile (history)Source of this description:
docs repo'sapi-firewall/directory (history)
What is API Firewall?
Wallarm API Firewall is an open-source light-weighted proxy designed to protect REST API endpoints in cloud-native environments by hardening based on a strict OpenAPI/Swagger schema validation. Wallarm API Firewall relies on a positive security model allowing calls that match a predefined API specification for requests and responses, while rejecting everything else.
The key features of API Firewall are:
- Protect REST API endpoints by blocking requests and responses that do not match the OAS/Swagger schema
- Discover Shadow API endpoints
- If using OAuth 2.0 protocol-based authentication, validate access tokens
- Quick and easy deployment and configuration
- Customization of request and response processing modes, response codes and log format
Use cases
- Block abnormal requests and responses that do not match the OpenAPI 3.0 specification (if running API Firewall in the blocking mode)
- Discover Shadow APIs and undocumented endpoints (if running API Firewall in the logging mode)
- Log abnormal requests and responses that do not match the OpenAPI 3.0 specification (if running API Firewall in the logging mode)
API schema validation and positive security model
When starting API Firewall, you should provide the OpenAPI 3.0 specification of the application to be protected with API Firewall. The started API Firewall will operate as a reverse proxy and validate whether requests and responses match the schema defined in the specification.
The traffic that does not match the schema will be logged using the STDOUT and STDERR Docker services or blocked (depending on the configured API Firewall operation mode). If operating in the logging mode and detecting the traffic on endpoints that are not included in the specification, API Firewall also logs these endpoints as the shadow ones (except for endpoints returning the code 404).
Provided API schema should be described using the OpenAPI 3.0 specification in the YAML or JSON file (.yaml, .yml, .json file extensions).
By allowing you to set the traffic requirements with the OpenAPI 3.0 specification, Wallarm API Firewall relies on a positive security model.
Technical characteristics
API Firewall works as a reverse proxy with a built-in OpenAPI 3.0 request and response validator. The validator is written in Go and optimized for extreme performance and near-zero added latency.
Starting API Firewall
To download, install, and start Wallarm API Firewall on Docker, see the instructions.
Demos
You can try API Firewall by running the demo environment that deploys an example application protected with Wallarm API Firewall. There are two available demo environments:
Wallarm's blog articles related to API Firewall
- Discovering Shadow APIs with API Firewall
- Wallarm API Firewall outperforms NGINX in a production environment
Performance
When creating API Firewall, we prioritized speed and efficiency to ensure that our customers would have the fastest APIs possible. Our latest tests demonstrate that the average time required for API Firewall to process one request is 1.339 ms:
$ ab -c 200 -n 10000 -p ./large.json -T application/json http://127.0.0.1:8282/test/signup
Document Path: /test/signup
Document Length: 20 bytes
Concurrency Level: 200
Time taken for tests: 0.769 seconds
Complete requests: 10000
Failed requests: 0
Total transferred: 2150000 bytes
Total body sent: 283770000
HTML transferred: 200000 bytes
Requests per second: 13005.81 [#/sec] (mean)
Time per request: 15.378 [ms] (mean)
Time per request: 0.077 [ms] (mean, across all concurrent requests)
Transfer rate: 2730.71 [Kbytes/sec] received
360415.95 kb/s sent
363146.67 kb/s total
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 5 1.6 5 12
Processing: 2 10 5.4 9 59
Waiting: 2 8 5.2 7 56
Total: 3 15 5.7 14 68
Percentage of the requests served within a certain time (ms)
50% 14
66% 15
75% 16
80% 17
90% 18
95% 23
98% 36
99% 44
100% 68 (longest request)These performance results are not the only ones we have got during API Firewall testing. Other results along with the methods used to improve API Firewall performance are described in this Wallarm's blog article.
License
View license information for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's api-firewall/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
File: arangodb/README.md
Quick reference
Maintained by:
ArangoDBWhere to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Supported tags and respective `Dockerfile` links
Quick reference (cont.)
Where to file issues:
https://github.com/arangodb/arangodb-docker/issuesPublished image artifact details:
repo-info repo'srepos/arangodb/directory (history)
(image metadata, transfer size, etc)Image updates:
official-images repo'slibrary/arangodblabel
official-images repo'slibrary/arangodbfile (history)Source of this description:
docs repo'sarangodb/directory (history)
What is ArangoDB?
ArangoDB is a scalable graph database system to drive value from connected data, faster. Native graphs, an integrated search engine, and JSON support, via a single query language.
ArangoDB runs everywhere: On-prem, in the cloud, and as a managed cloud service: ArangoGraph Insights Platform.
Key Features in ArangoDB
Native Graph Store both data and relationships, for faster queries even with multiple levels of joins and deeper insights that simply aren't possible with traditional relational and document database systems.
Document Store Every node in your graph is a JSON document: flexible, extensible, and easily imported from your existing document database.
ArangoSearch Natively integrated cross-platform indexing, text-search and ranking engine for information retrieval, optimized for speed and memory.
ArangoDB Documentation
How to use this image
Start an ArangoDB instance
In order to start an ArangoDB instance, run:
docker run -d -p 8529:8529 -e ARANGO_RANDOM_ROOT_PASSWORD=1 --name arangodb-instance arangodbDocker chooses the processor architecture for the image that matches your host CPU by default. If this is not the case, for example, because you have the DOCKER_DEFAULT_PLATFORM environment variable set to a different architecture, you can pass the --platform flag to the docker run command to specify the appropriate operating system and architecture for the container. For x86-64, use linux/amd64. On ARM, especially Apple silicon with no emulation for the required AVX instruction set extension, use linux/arm64/v8:
docker run -d -p 8529:8529 -e ARANGO_RANDOM_ROOT_PASSWORD=1 --name arangodb-instance --platform linux/arm64/v8 arangodbThis creates and launches the arangodb Docker instance as a background process. The Identifier of the process is printed. By default, ArangoDB listens on port 8529 for requests.
In order to get the IP ArangoDB listens on, run:
docker inspect --format '{{ .NetworkSettings.IPAddress }}' arangodb-instanceInitialize the server language
When using Docker, you need to specify the language you want to initialize the server to on the first run in one of the following ways:
Set the environment variable
LANGto a locale in thedocker runcommand, e.g.-e LANG=svfor a Swedish locale.Use an
arangod.confconfiguration file that sets a language and mount it into the container. For example, create a configuration file on your host system in which you seticu-language = svat the top (before any[section]) and then mount the file over the default configuration file likedocker run -v /your-host-path/arangod.conf:/etc/arangodb3/arangod.conf ....
If you don't specify a language explicitly, the default is en_US up to ArangoDB v3.11 and en_US_POSIX from ArangoDB v3.12 onward.
Using the instance
To use the running instance from an application, link the container:
docker run -e ARANGO_RANDOM_ROOT_PASSWORD=1 --name my-app --link arangodb-instance:db-link arangodbThis uses the instance named arangodb-instance and links it into the application container. The application container contains environment variables, which can be used to access the database.
DB_LINK_PORT_8529_TCP=tcp://172.17.0.17:8529
DB_LINK_PORT_8529_TCP_ADDR=172.17.0.17
DB_LINK_PORT_8529_TCP_PORT=8529
DB_LINK_PORT_8529_TCP_PROTO=tcp
DB_LINK_NAME=/naughty_ardinghelli/db-linkExposing the port to the outside world
If you want to expose the port to the outside world, run:
docker run -e ARANGO_RANDOM_ROOT_PASSWORD=1 -p 8529:8529 -d arangodbArangoDB listen on port 8529 for request and the image includes EXPOSE 8529. The -p 8529:8529 exposes this port on the host.
Choosing an authentication method
The ArangoDB image provides several authentication methods which can be specified via environment variables (-e) when using docker run
ARANGO_RANDOM_ROOT_PASSWORD=1Generate a random root password when starting. The password will be printed to stdout (may be inspected later using
docker logs)ARANGO_NO_AUTH=1Disable authentication. Useful for testing.
WARNING Doing so in production will expose all your data. Make sure that ArangoDB is not directly accessible from the internet!
ARANGO_ROOT_PASSWORD=somepasswordSpecify your own root password.
Note: this way of specifying logins only applies to single server installations. With clusters you have to provision the users via the root user with empty password once the system is up.
Command line options
You can pass arguments to the ArangoDB server by appending them to the end of the Docker command:
docker run -e ARANGO_RANDOM_ROOT_PASSWORD=1 arangodb --helpThe entrypoint script starts the arangod binary by default and forwards your arguments.
You may also start other binaries, such as the ArangoShell:
docker run -it arangodb arangosh --server.database myDB ...Note that you need to set up networking for containers if arangod runs in one container and you want to access it with arangosh running in another container. It is easier to execute it in the same container instead. Use docker ps to find out the container ID / name of a running container:
docker psIt prints something similar to the following:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1234567890ab arangodb "/entrypoint.sh aran…" 2 hours ago Up 2 hours 0.0.0.0:8529->8529/tcp jolly_jokerThen use docker exec and the ID / name to run something inside of the existing container:
docker exec -it jolly_joker arangoshFor more information, see the ArangoDB documentation about Configuration.
Limiting resource utilization
arangod checks the following environment variables, which can be used to restrict how much memory and how many CPU cores it should use:
ARANGODB_OVERRIDE_DETECTED_TOTAL_MEMORY(introduced in v3.6.3)This variable can be used to override the automatic detection of the total amount of RAM present on the system. One can specify a decimal number (in bytes). Furthermore, if
Gorgis appended, the value is multiplied by2^30. IfMormis appended, the value is multiplied by2^20. IfKorkis appended, the value is multiplied by2^10. That is,64Gmeans 64 gigabytes.The total amount of RAM detected is logged as an INFO message at server start. If the variable is set, the overridden value is shown. Various default sizes are calculated based on this value (e.g. RocksDB buffer cache size).
Setting this option can in particular be useful in two cases:
- If
arangodis running in a container and its cgroup has a RAM limitation, then one should specify this limitation in this environment variable, since it is currently not automatically detected. - If
arangodis running alongside other services on the same machine and thus sharing the RAM with them, one should limit the amount of memory using this environment variable.
- If
ARANGODB_OVERRIDE_DETECTED_NUMBER_OF_CORES(introduced in v3.7.1)This variable can be used to override the automatic detection of the number of CPU cores present on the system.
The number of CPU cores detected is logged as an INFO message at server start. If the variable is set, the overridden value is shown. Various default values for threading are calculated based on this value.
Setting this option is useful if
arangodis running in a container or alongside other services on the same machine and shall not use all available CPUs.
Persistent Data
ArangoDB supports two different storage engines from version 3.2 to 3.6. You can choose them while instantiating the container with the environment variable ARANGO_STORAGE_ENGINE. With mmfiles you choose the classic storage engine (not available in 3.7 and later), rocksdb will choose the storage engine based on RocksDB. The default choice is rocksdb from version 3.4 on.
ArangoDB uses the volume /var/lib/arangodb3 as database directory to store the collection data and the volume /var/lib/arangodb3-apps as apps directory to store any extensions. These directories are marked as docker volumes.
See docker inspect --format "{{ .Config.Volumes }}" arangodb for all volumes.
A good explanation about persistence and docker container can be found here: Docker In-depth: Volumes, Why Docker Data Containers are Good
Using host directories
You can map the container's volumes to a directory on the host, so that the data is kept between runs of the container. This path /tmp/arangodb is in general not the correct place to store you persistent files - it is just an example!
unix> mkdir /tmp/arangodb
unix> docker run -e ARANGO_RANDOM_ROOT_PASSWORD=1 -p 8529:8529 -d \
-v /tmp/arangodb:/var/lib/arangodb3 \
arangodbThis will use the /tmp/arangodb directory of the host as database directory for ArangoDB inside the container.
Using a data container
Alternatively you can create a container holding the data.
docker create --name arangodb-persist arangodb trueAnd use this data container in your ArangoDB container.
docker run -e ARANGO_RANDOM_ROOT_PASSWORD=1 --volumes-from arangodb-persist -p 8529:8529 arangodbIf want to save a few bytes you can alternatively use busybox or alpine for creating the volume only containers. Please note that you need to provide the used volumes in this case. For example
docker run -d --name arangodb-persist -v /var/lib/arangodb3 busybox trueUsage as a base image
If you are using the image as a base image please make sure to wrap any CMD in the exec form. Otherwise the default entrypoint will not do its bootstrapping work.
When deriving the image, you can control the instantiation via putting files into /docker-entrypoint-initdb.d/.
*.sh- files ending with .sh will be run as a bash shellscript.*.js- files will be executed with arangosh. You can specify additional arangosh arguments via theARANGOSH_ARGSenvironment variable.dumps/- in this directory you can place subdirectories containing database dumps generated using arangodump. They can be restored using arangorestore.
License
The official Docker images of the ArangoDB Community Edition are governed by the ArangoDB Community License. It limits deployments to a 100 GB on dataset size in production and you cannot use it for any commercial purposes, only internal business purposes. It does not include the right to distribute, embed within other products, or combine with ArangoDB's Enterprise Edition of the software.
The source code of the Community Edition is available under the Business Source License 1.1 (BUSL-1.1). Copying, modification, redistribution, non-commercial use, and commercial use in a non-production context are always allowed. Additionally, you can deploy BUSL-licensed ArangoDB source code for any purpose (including production) as long as you are not creating a commercial derivative work or offering, or are including it in a commercial product, application, or service. On the fourth anniversary of the first publicly available distribution of a specific version, the license changes to the permissive Apache 2.0 open-source license.
Up to ArangoDB version 3.11, ArangoDB is licensed under the Apache 2.0 License.
ArangoDB contains software of third parties under their respective licenses.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's arangodb/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.