专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像 官方专业版轩辕镜像 官方专业版官方专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 1072982923

freeipa/freeipa-server Docker 镜像 - 轩辕镜像 | Docker 镜像高效稳定拉取服务

热门搜索:openclaw🔥nginx🔥redis🔥mysqlopenjdkcursorweb2apimemgraphzabbixetcdubuntucorednsjdk
freeipa-server
freeipa/freeipa-server
自动构建
freeipa
FreeIPA服务器容器,提供集中式身份认证、授权和账户管理服务,支持在容器中部署主服务器或副本,通过systemd管理服务,适用于开发测试与生产环境,支持数据持久化、版本升级及多标签选择(稳定版/开发版)。
180 次收藏下载次数: 0状态:自动构建维护者:freeipa仓库类型:镜像最近更新:13 天前
轩辕镜像,让镜像更快,让人生更轻。点击查看
版本下载
轩辕镜像,让镜像更快,让人生更轻。点击查看

FreeIPA server container

This repository contains FreeIPA server container images built from [***]

Multiple tags are available. For reasonably stable deployments, use freeipa/freeipa-server:almalinux-10 and for extra stable, use :almalinux-10-4.*.* with specific FreeIPA version.

For development or testing deployments, use some of the :fedora-* tags. For the most cutting edge setup, try :fedora-rawhide.

In the commands below we call the image freeipa-server, so replace it accordingly.

Running FreeIPA server container

While in an ideal case the use of FreeIPA server container can simplify the setup, prior experience with FreeIPA is definitely useful. For the general FreeIPA topics, refer to the FreeIPA documentation. Here we only focus on the aspects that are specific to running FreeIPA containerized.

Note that getting the FreeIPA container set up and running can be more challenging than other typical containerized workloads.

Running the container

The FreeIPA container runs systemd to manage all the necessary services within a single container. Running a systemd-based container may require special handling or parameters to be passed to the container runtime. When you hit an issue, debug by simplifying the setup, retry with basic podman or docker instead of continuing with more complex orchestration like docker-compose or Kubernetes, try to get plain systemd running in container properly first (see Debugging section below).

Note that privileged setup is not supported and will not work — we want the FreeIPA server container to be reasonably isolated from the host and vice versa.

With podman, normal podman run is typically enough and works for rootless setups as well.

Use of rootless docker (check with docker info --format '{{ .ClientInfo.Context }}') is only supported on systems with cgroups v2 (determine by existence of /sys/fs/cgroup/cgroup.controllers). It may then be necessary to use docker run option

--cgroupns=host -v /sys/fs/cgroup:/sys/fs/cgroup:rw

With rootful docker daemon, user namespace remapping may be needed for the container cgroup to be properly created and mounted within the container read-write as systemd expects it, with

{ "userns-remap": "default" }

in /etc/docker/daemon.json. Restart of the docker service is needed after this configuration change. This approach also isolates the root in the container from the root on the host, which is a good thing in general. On the other hand, it is a global daemon configuration so it will affect other containers as well.

With docker on systems with cgroups v1, there is often a hybrid setup present with cgroups v2 as well, available as /sys/fs/cgroup/unified, so invoking docker run with option

-v /sys/fs/cgroup/unified:/sys/fs/cgroup:rw

should work.

On SELinux enabled systems, it may be also necessary to enable running systemd in containers by setting SELinux boolean container_manage_cgroup on the host with

setsebool -P container_manage_cgroup 1
Server configuration and data

The FreeIPA container will store all its configurations, data, and logs on volume mounted to /data directory in the container. If we create directory which will hold the server data on the host with

mkdir ipa-data

we can then create the FreeIPA container with podman using

podman run --name freeipa-server-container -ti \
    -h ipa.example.test --read-only \
    -v $(pwd)/ipa-data:/data:Z <image> [ ... ]

and with docker using

docker run --name freeipa-server-container -ti \
    -h ipa.example.test --read-only \
    -v $(pwd)/ipa-data:/data:Z <image> [ ... ]

When running in rootless mode, make sure the volume directory on the host is owned by uid which becomes uid 0 in the container.

Of course, the volume can also be created in the container system, for example with

podman volume create freeipa-data
podman run --name freeipa-server-container -ti \
    -h ipa.example.test --read-only \
    -v freeipa-data:/data:Z <image> [ ... ]
Initial FreeIPA master setup

Upon the first invocation with empty directory mounted to /data, the container will run ipa-server-install (or ipa-replica-install) to configure FreeIPA master or replica. For example

podman run -ti -h ipa.example.test --read-only \
    -v /var/lib/ipa-data:/data:Z \
    <image> ipa-server-install -r EXAMPLE.TEST --no-ntp

will run interactive ipa-server-install and configure the FreeIPA master using the inputs provided. For unattended initial installation, use the -U argument to ipa-server-install and specify all the necessary inputs as argument on the command line, for example

docker run -h ipa.example.test --read-only \
    -v /var/lib/ipa-data:/data:Z \
    -e PASSWORD=Secret123 \
    <image> ipa-server-install -U -r EXAMPLE.TEST --no-ntp

The environment variable PASSWORD sets both the Directory Manager and admin passwords, an equivalent of specifying --admin-password and --ds-password on the command line.

The ipa-server-install command is the default and can be omitted.

Sometimes it is not convenient or possible to specify the arguments to ipa-server-install as arguments to podman run or docker run. In the case they can be specified either using environment variable IPA_SERVER_INSTALL_OPTS using the -e option, or they can be passed in using file ipa-server-install-options in the directory mounted to the container as /data. For example, when /var/lib/ipa-data/ipa-server-install-options contains

--realm=EXAMPLE.TEST
--ds-password=The-directory-server-password
--admin-password=The-admin-password

and podman run or docker run is executed with -v /var/lib/ipa-data:/data:Z, the content of ipa-server-install-options will be passed as arguments to ipa-server-install.

Since the ipa-server-install-options typically contains passwords, it is also possible to use podman secret create to store the whole content of that file, and the invoke podman run with options like

--secret source=options-with-credentials,target=/data/ipa-server-install-options

to expose the options in the container. The same holds for docker invocation.

If you want to instruct the container to create a replica, specify the ipa-replica-install command in the podman run or docker run parameters:

podman run -ti -h ipa.example.test --read-only \
   -v /var/lib/ipa-data:/data:Z \
   <image> ipa-replica-install [ opts ]

Using ipa-replica-install-options also works and will invoke ipa-replica-install and pass it its content as argument, the same way ipa-server-install-options works for ipa-server-install.

Routine invocation

Upon subsequent invocations when /data is found already populated with FreeIPA server configuration and data, the options are ignored and just the necessary services get started in the container.

Upgrades

If you have existing container with data volume, it should be safe to shut it down and run new one based on newer image, with the same data directory bind-mounted to /data. The container logic will detect that it is running with data produced by different image and attempt to upgrade the configuration and data.

This in-place upgrade with newer container image only works within the same major version of the operating system used in container, so for example upgrades from AlmaLinux 9-based container to newer AlmaLinux 9-based images are supported but upgrades to AlmaLinux 10 are not. With Fedoras, upgrades across major versions are known to work as well but it is recommended to upgrade along the sequential Fedora versions; don't make jumps across multiple Fedora versions.

Of course, keeping backup of the data directory for cases when the upgrade process fails is recommended. If in doubt, copy the volume content and start another throwaway container in a completely isolated testbed environment using the original data and new image and verify the upgrade and stability post upgrade.

If the in-place upgrade fails and for upgrades across major operating system versions, the easiest way forward is to take advantage of FreeIPA's replication — add replica containers to the existing FreeIPA cluster and remove the original containers after the new ones have been verified stable.

Backup and restore

The FreeIPA server container stores all configuration, data, and logs in one volume mounted at /data. Instead of using ipa-backup and ipa-restore, the easiest way to backup the container is to stop it and just backup the content of the directory mounted to /data.

If you transfer that backup to different machine and you've been using setup with user namespace remapping (rootless containers), check that the /etc/subuid and /etc/subgid values used by the docker/podman match on both machines.

You then restore the server by running a new container with a copy of that backup mounted to /data.

Other runtime ***ations

If you receive error like

IPv6 stack is enabled in the kernel but there is no interface that
has ::1 address assigned. Add ::1 address resolution to 'lo' interface.
You might need to enable IPv6 on the interface 'lo' in sysctl.conf.

you might also need to add option --sysctl net.ipv6.conf.all.disable_ipv6=0.

If you receive error like

Unable to determine the amount of available RAM

you might need to use ipa-server-install option --skip-mem-check.

When running DNS server (the --setup-dns argument to ipa-server-install) in the FreeIPA container, add --dns=127.0.0.1 option to the podman run or docker run invocation to allow the FreeIPA server to reach its own DNS server.

To allow for unprivileged container operation, use the -h ... option to set the hostname for the FreeIPA server in the container. If it's not possible to set the hostname for the container, specify it with IPA_SERVER_HOSTNAME environment variable, for example with podman run -e IPA_SERVER_HOSTNAME=.... This might however not work with read-only containers. Do not use the ipa-server-install --hostname ... argument.

Exposing ports

If you want to use the FreeIPA server not just from the host where it is running but from external machines as well, you might want to use the -p options to make the services accessible externally.

docker run -p 53:53/udp -p 53:53 \
    -p 80:80 -p 443:443 -p 389:389 -p 636:636 -p 88:88 -p 464:464 \
    -p 88:88/udp -p 464:464/udp -p 123:123/udp ...

You will then likely want to also specify the --ip-address option to ipa-server-install with the IP address of the host, and also use the --add-host option to the docker run / podman run with the same IP address, especially when running the container as read only.

By default the container will attempt to update the FreeIPA server's IPv4 address in the internal DNS server to its internal address (as seen in the container) upon each startup, using the systemd service ipa-server-update-self-ip-address in the container. You can disable this mechanism by setting the IPA_SERVER_IP environment variable to no-update, via the -e option to docker run / podman run, or by exec-ing to the container and running systemctl disable ipa-server-update-self-ip-address.service.

Alternatively, the IPA_SERVER_IP environment variable can be used to force the IPv4 address DNS record to a specific value. Using this mechanism will however not update the ipa-ca record.

Running in Kubernetes

An example Pod YAML for running FreeIPA server in Kubernetes is shown in [***] It is also used by the CI workflows of this repo which you are welcome so check for any workarounds that might be needed.

The crucial value is the spec.hostUsers: false which ensures the Pod runs in its user namespace, with its root (and other uids) isolated from the host. For this to work, the UserNamespacesSupport Kubernetes feature gate needs to be set to true in the cluster. The feature gate is present starting with Kubernetes 1.28, and it is true by default since Kubernetes 1.33.

The second prerequisite is the support for user namespaces and writable cgroups in runtimes. Runtimes known to work include

  • containerd 2.1+, with writable systemd cgroups configuration
  • CRI-O 1.32+

with either of

  • runc 1.2+
  • crun 1.9+

When docker is used as a runtime for Kubernetes, the user namespace remapping with userns-remap described above needs to be used instead of spec.hostUsers.

Debugging

The container scripts provide some options for debugging:

  • Enable shell script tracing in both the top-level init-data script and the ipa-server-configure-first script by setting the $DEBUG_TRACE environment variable.

  • Disable container exit after script failure by setting the $DEBUG_NO_EXIT environment variable. After failure, the container will continue running, and can be entered for debugging with e.g. podman exec -it freeipa-server-container bash. This can also be achieved by specifying no-exit as the first word in the [opts] to the container.

  • Force container exit after successfully configuring the FreeIPA server by specifying exit-on-finished as the first word in the [opts] to the container.

Example usage:

podman run [...] -e DEBUG_TRACE=1 -e DEBUG_NO_EXIT=1 localhost/freeipa-server ...

or

docker run [...] localhost/freeipa-server exit-on-finished -U -r EXAMPLE.TEST

You can also try to run

docker=podman tests/run-partial-tests.sh Dockerfile

or

docker=docker tests/run-partial-tests.sh Dockerfile

which can uncover the general issues with running systemd in containers.

CI in GitHub Actions

To check the general health of the project, see [***] where tests are run for various OS versions in the containers.

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

[***]

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

查看更多 freeipa-server 相关镜像 →
centos/freeipa logo
centos/freeipa
centos
基于CentOS的Docker化FreeIPA镜像,提供集成的身份验证、授权与目录服务,适用于企业环境中身份及访问管理的便捷部署。
27 次收藏1万+ 次下载
9 年前更新

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

Docker 配置

登录仓库拉取

通过 Docker 登录认证访问私有仓库

专属域名拉取

无需登录使用专属域名

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

系统配置

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

MacOS OrbStack

MacOS OrbStack 容器配置

Docker Compose

Docker Compose 项目配置

NAS 设备

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

极空间

极空间 NAS 系统配置服务

网络设备

爱快路由

爱快 iKuai 路由系统配置

宝塔面板

在宝塔面板一键配置镜像

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

使用与功能问题

docker search 报错:专属域名下仅支持 Docker Hub 查询

docker search 报错问题

网页搜不到镜像:Docker Hub 有但轩辕镜像搜索无结果

镜像搜索不到

离线传输镜像:无法直连时用 docker save/load 迁移

离线传输镜像

Docker 插件安装错误:application/vnd.docker.plugin.v1+json

Docker 插件安装错误

WSL 下 Docker 拉取慢:网络与挂载目录影响及优化

WSL 拉取镜像慢

轩辕镜像是否安全?镜像完整性校验(digest)说明

镜像安全性

如何用轩辕镜像拉取镜像?登录方式与专属域名配置

如何拉取镜像

错误码与失败问题

manifest unknown 错误:镜像不存在或标签错误

manifest unknown 错误

TLS/SSL 证书验证失败:Docker pull 时 HTTPS 证书错误

TLS 证书验证失败

DNS 解析超时:无法解析镜像仓库地址或连接超时

DNS 解析超时

410 Gone 错误:Docker 版本过低导致协议不兼容

410 错误:版本过低

402 Payment Required 错误:流量耗尽错误提示

402 错误:流量耗尽

401 UNAUTHORIZED 错误:身份认证失败或登录信息错误

身份认证失败错误

429 Too Many Requests 错误:请求频率超出专业版限制

429 限流错误

Docker login 凭证保存错误:Cannot autolaunch D-Bus(不影响登录)

凭证保存错误

账号 / 计费 / 权限

免费版与专业版区别:功能、限额与使用场景对比

免费版与专业版区别

支持的镜像仓库:Docker Hub、GCR、GHCR、K8s 等列表

轩辕镜像支持的镜像仓库

拉取失败是否扣流量?计费规则说明

拉取失败流量计费

KYSEC 权限不够:麒麟 V10/统信 UOS 下脚本执行被拦截

KYSEC 权限错误

如何申请开具发票?(增值税普票/专票)

开具发票

如何修改网站与仓库登录密码?

修改网站和仓库密码

配置与原理类

registry-mirrors 未生效:仍访问官方仓库或报错的原因

registry-mirrors 未生效

如何去掉镜像名称中的轩辕域名前缀?(docker tag)

去掉域名前缀

如何拉取指定架构镜像?(ARM64/AMD64 等多架构)

拉取指定架构镜像

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
freeipa/freeipa-server
博客公告Docker 镜像公告与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
镜像拉取问题咨询请 提交工单,官方技术交流群:1072982923。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
镜像拉取问题咨询请提交工单,官方技术交流群:。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.