Closed patsevanton closed 1 year ago
You need to find out where that 172.25.0.2 comes from.
You show outputs from docker exec
to various containers (fc
, 15
) while the one started by the docker-compose is freeipa
, and with various mix of hostname (zzzzzz
, zzzzzzzzz
, zzzzz
). You really need to make things consistent.
As for the
dns:
- 127.0.0.1
-- what do you try to achieve with that? Use the DNS server on the host running the container, or something else? Note that some docker engine versions use some logic to turn that into the IP address of docker's embedded DNS server (127.0.0.11) so the question is how that ends up being used.
But the primary goal should be to debug the freeipa
container, not some others. You might want to check out the DEBUG_NO_EXIT
environment variable or the no-exit
directive in https://github.com/freeipa/freeipa-container#debugging as well.
I also wonder about the cgroup v1
being reported -- if this is a recent Fedora host like https://github.com/freeipa/freeipa-container/issues/510 indicated, you should be using v2 by now.
Thanks! I reinstall Virtual Machine and docker, docker-compose. Worked docker-compose.
version: "3.8"
services:
freeipa:
image: freeipa/freeipa-server:fedora-37-4.10.1
container_name: freeipa
restart: unless-stopped
hostname: freeipa.apatsev.org.io
ports:
- 123:123/udp
- 389:389
- 443:443
- 464:464
- 464:464/udp
- 636:636
- 80:80
- 88:88
- 88:88/udp
dns:
- ns1.yandexcloud.net
- 1.1.1.1
tty: true
stdin_open: true
environment:
IPA_SERVER_HOSTNAME: freeipa.apatsev.org.io
TZ: "Europe/Moscow"
command:
- --admin-password=password
- --dirsrv-pin=password
- --ds-password=password
- --http-pin=password
- --realm=apatsev.org.io
- --unattended
- --external-ca
- --external_cert_file=/root/certificate.crt
- --external_ca_file=/ca/ca_cert.crt
cap_add:
- SYS_TIME
- NET_ADMIN
volumes:
- /etc/localtime:/etc/localtime:ro
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /var/lib/freeipa:/data
- /etc/docker-compose/ca:/ca
- /etc/docker-compose/freeiparoot:/root
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
- net.ipv6.conf.lo.disable_ipv6=0
security_opt:
- "seccomp:unconfined"
tmpfs:
- /tmp
- /run
Hello!
Docker-compose
Run and get error
Debug
Log: