gpt4 book ai didi

linux - 将 FreeIPA 服务器作为 docker 容器启动时出错

转载 作者:行者123 更新时间:2023-12-02 18:18:22 25 4
gpt4 key购买 nike

当我运行以下命令时出现错误:

docker run --name freeipa-server-container -ti \
-h ipa.example.test \
--read-only \
-v /var/lib/ipa-data:/data:Z freeipa-server [ opts ]

错误:

systemd 239 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=legacy)

Detected virtualization container-other.

Detected architecture x86-64. Set hostname to <ipa.example.test>.

Initializing machine ID from random generator.

Couldn't move remaining userspace processes, ignoring: Input/output error

Sun Mar 22 16:47:43 UTC 2020 /usr/sbin/ipa-server-configure-first

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. The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information

最后一部分说我需要在 sysctl.conf 中的接口(interface)“lo”上启用 IPv6。

这是 ifconfig 的输出.它已经启用。不是吗?

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 661 bytes 56283 (56.2 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 661 bytes 56283 (56.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

而且我也找不到太多关于

的信息
Couldn't move remaining userspace processes, ignoring: Input/output error

有什么指点吗?我正在关注此资源:https://github.com/freeipa/freeipa-container

最佳答案

我能够在 this other answer 之后解决同样的问题,基本上是通过将 --sysctl net.ipv6.conf.lo.disable_ipv6=0 添加到我的 docker run ... 命令中。我实际上不知道为什么它需要在那里,但我的症状和你的一样,这就成功了。这是我的完整测试命令:

$ docker run -it --rm \
--sysctl net.ipv6.conf.lo.disable_ipv6=0
--name freeipa-server-container \
-h idm.example.test \
-v /sys/fs/cgroup:/sys/fs/cgroup:ro \
-v /var/lib/ipa-data:/data \
--tmpfs /run \
--tmpfs /tmp \
freeipa/freeipa-server:latest

抱歉,这不是一个很好的答案,但如果您仍然被困住,它至少可以让您走得更远。

关于linux - 将 FreeIPA 服务器作为 docker 容器启动时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60802236/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com