PREP ==== git clone https://github.com/freeipa/freeipa-container.git cd freeipa-container mkdir /tmp/ipa-data
docker run --name freeipa-server-container -ti -h ipa.example.test --read-only -v /tmp/ip-data :/data:Z freeipa-server --sysctl net.ipv6.conf.all.disable_ipv6=1
RESULT ====== tar: etc/sysconfig/selinux: Cannot utime: No such file or directory tar: Exiting with failure status due to previous errors
QUESTION ========= I'm running DockerDesktop 2.0.4, OSX 10.13.6. Is there a set of commands that will work?
Thanks
On ti, 04 kesä 2019, james liu via FreeIPA-users wrote:
PREP
git clone https://github.com/freeipa/freeipa-container.git cd freeipa-container mkdir /tmp/ipa-data
docker run --name freeipa-server-container -ti -h ipa.example.test --read-only -v /tmp/ip-data :/data:Z freeipa-server --sysctl net.ipv6.conf.all.disable_ipv6=1
You should be using disable_ipv6=0, we require at least ::1 to be present on the interfaces.
RESULT
tar: etc/sysconfig/selinux: Cannot utime: No such file or directory tar: Exiting with failure status due to previous errors
This looks like there is something in your container. Can you show more of that output?
QUESTION
I'm running DockerDesktop 2.0.4, OSX 10.13.6. Is there a set of commands that will work?
Thanks _______________________________________________ FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org To unsubscribe send an email to freeipa-users-leave@lists.fedorahosted.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/freeipa-users@lists.fedorahoste...
$ docker run --name freeipa-server-container -ti -h ipa.example.test --read-only -v /tmp/ip-data:/data:Z freeipa-server --sysctl net.ipv6.conf.all.disable_ipv6=0 tar: etc/pam.d/password-auth: Cannot utime: No such file or directory tar: etc/pam.d/fingerprint-auth: Cannot utime: No such file or directory tar: etc/pam.d/system-auth: Cannot utime: No such file or directory tar: etc/pam.d/postlogin: Cannot utime: No such file or directory tar: etc/pam.d/smartcard-auth: Cannot utime: No such file or directory tar: etc/systemd/system/default.target: Cannot utime: No such file or directory tar: etc/systemd/system/multi-user.target.wants: Cannot utime: No such file or directory tar: etc/systemd/system/container-ipa.target.wants/ipa-server-configure-first.service: Cannot utime: No such file or directory tar: etc/nsswitch.conf: Cannot utime: No such file or directory tar: etc/pki/ca-trust/source/ca-bundle.legacy.crt: Cannot utime: No such file or directory tar: etc/krb5.conf.d/crypto-policies: Cannot utime: No such file or directory tar: etc/sysconfig/selinux: Cannot utime: No such file or directory tar: Exiting with failure status due to previous errors $
mkdir -p /tmp/ip-data/etc/selinux/config $ docker rm -f freeipa-server-container freeipa-server-container $ docker run --name freeipa-server-container -ti -h ipa.example.test --read-only -v /tmp/ip-data:/data:Z freeipa-server --sysctl net.ipv6.conf.all.disable_ipv6=0 tar: .configfiles-noreplace/etc/pam.d/password-auth: Cannot utime: No such file or directory tar: .configfiles/etc/pam.d/password-auth: Cannot utime: No such file or directory tar: .configfiles-noreplace/etc/pam.d/fingerprint-auth: Cannot utime: No such file or directory tar: .configfiles/etc/pam.d/fingerprint-auth: Cannot utime: No such file or directory tar: .configfiles-noreplace/etc/pam.d/system-auth: Cannot utime: No such file or directory tar: .configfiles/etc/pam.d/system-auth: Cannot utime: No such file or directory tar: .configfiles-noreplace/etc/pam.d/postlogin: Cannot utime: No such file or directory tar: .configfiles/etc/pam.d/postlogin: Cannot utime: No such file or directory tar: .configfiles-noreplace/etc/pam.d/smartcard-auth: Cannot utime: No such file or directory tar: .configfiles/etc/pam.d/smartcard-auth: Cannot utime: No such file or directory tar: .configfiles-noreplace/etc/nsswitch.conf: Cannot utime: No such file or directory tar: .configfiles/etc/nsswitch.conf: Cannot utime: No such file or directory tar: .configfiles-noreplace/etc/krb5.conf.d/crypto-policies: Cannot utime: No such file or directory tar: .configfiles/etc/krb5.conf.d/crypto-policies: Cannot utime: No such file or directory tar: Exiting with failure status due to previous errors $
On ke, 05 kesä 2019, James James via FreeIPA-users wrote:
mkdir -p /tmp/ip-data/etc/selinux/config $ docker rm -f freeipa-server-container freeipa-server-container $ docker run --name freeipa-server-container -ti -h ipa.example.test --read-only -v /tmp/ip-data:/data:Z freeipa-server --sysctl net.ipv6.conf.all.disable_ipv6=0 tar: .configfiles-noreplace/etc/pam.d/password-auth: Cannot utime: No such file or directory tar: .configfiles/etc/pam.d/password-auth: Cannot utime: No such file or directory tar: .configfiles-noreplace/etc/pam.d/fingerprint-auth: Cannot utime: No such file or directory tar: .configfiles/etc/pam.d/fingerprint-auth: Cannot utime: No such file or directory tar: .configfiles-noreplace/etc/pam.d/system-auth: Cannot utime: No such file or directory tar: .configfiles/etc/pam.d/system-auth: Cannot utime: No such file or directory tar: .configfiles-noreplace/etc/pam.d/postlogin: Cannot utime: No such file or directory tar: .configfiles/etc/pam.d/postlogin: Cannot utime: No such file or directory tar: .configfiles-noreplace/etc/pam.d/smartcard-auth: Cannot utime: No such file or directory tar: .configfiles/etc/pam.d/smartcard-auth: Cannot utime: No such file or directory tar: .configfiles-noreplace/etc/nsswitch.conf: Cannot utime: No such file or directory tar: .configfiles/etc/nsswitch.conf: Cannot utime: No such file or directory tar: .configfiles-noreplace/etc/krb5.conf.d/crypto-policies: Cannot utime: No such file or directory tar: .configfiles/etc/krb5.conf.d/crypto-policies: Cannot utime: No such file or directory tar: Exiting with failure status due to previous errors
Looks something more generic. Does the same sequence work on Linux host?
Also having this issue when running this container on MacOS 10.15.17.
ninjitsu@derpenstein freeipa-container % docker run -e IPA_SERVER_IP=10.12.0.98 -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 --name freeipa-server-container -ti -h freeipa-srv.derp.com --read-only -v /sys/fs/cgroup:/sys/fs/cgroup:ro --sysctl net.ipv6.conf.all.disable_ipv6=0 -v /Users/ninjitsu/Documents/docker/ipa-data:/data:Z freeipa-server --realm=DERP.COM --ds-password=changeme --admin-password=changeme --unattended tar: etc/systemd/system/default.target: Cannot utime: No such file or directory tar: etc/systemd/system/multi-user.target.wants: Cannot utime: No such file or directory tar: etc/systemd/system/container-ipa.target.wants/ipa-server-configure-first.service: Cannot utime: No such file or directory tar: etc/pki/ca-trust/source/ca-bundle.legacy.crt: Cannot utime: No such file or directory tar: etc/pam.d/smartcard-auth: Cannot utime: No such file or directory tar: etc/pam.d/fingerprint-auth: Cannot utime: No such file or directory tar: etc/pam.d/password-auth: Cannot utime: No such file or directory tar: etc/pam.d/system-auth: Cannot utime: No such file or directory tar: etc/pam.d/postlogin: Cannot utime: No such file or directory tar: etc/krb5.conf.d/crypto-policies: Cannot utime: No such file or directory tar: etc/sysconfig/selinux: Cannot utime: No such file or directory tar: etc/nsswitch.conf: Cannot utime: No such file or directory tar: Exiting with failure status due to previous errors ninjitsu@derpenstein freeipa-container %
On ke, 14 loka 2020, Michael Romero via FreeIPA-users wrote:
Also having this issue when running this container on MacOS 10.15.17.
ninjitsu@derpenstein freeipa-container % docker run -e IPA_SERVER_IP=10.12.0.98 -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 --name freeipa-server-container -ti -h freeipa-srv.derp.com --read-only -v /sys/fs/cgroup:/sys/fs/cgroup:ro --sysctl net.ipv6.conf.all.disable_ipv6=0 -v /Users/ninjitsu/Documents/docker/ipa-data:/data:Z freeipa-server --realm=DERP.COM --ds-password=changeme --admin-password=changeme --unattended tar: etc/systemd/system/default.target: Cannot utime: No such file or directory tar: etc/systemd/system/multi-user.target.wants: Cannot utime: No such file or directory tar: etc/systemd/system/container-ipa.target.wants/ipa-server-configure-first.service: Cannot utime: No such file or directory tar: etc/pki/ca-trust/source/ca-bundle.legacy.crt: Cannot utime: No such file or directory tar: etc/pam.d/smartcard-auth: Cannot utime: No such file or directory tar: etc/pam.d/fingerprint-auth: Cannot utime: No such file or directory tar: etc/pam.d/password-auth: Cannot utime: No such file or directory tar: etc/pam.d/system-auth: Cannot utime: No such file or directory tar: etc/pam.d/postlogin: Cannot utime: No such file or directory tar: etc/krb5.conf.d/crypto-policies: Cannot utime: No such file or directory tar: etc/sysconfig/selinux: Cannot utime: No such file or directory tar: etc/nsswitch.conf: Cannot utime: No such file or directory tar: Exiting with failure status due to previous errors ninjitsu@derpenstein freeipa-container %
It is MacOS implementation-specific issue:
- MacOS had issues with utimesat() call (https://github.com/hanwen/go-fuse/commit/76c230393cdc945a2cdd003202251138970...)
- A bug in gnulib due to this, visible as a tar issue above (https://lists.gnu.org/r/bug-gnulib/2019-07/msg00069.html)
The issue specifically affects bind mounts. Try to use docker-managed volume instead of a bind mounting your directory directly.
https://github.com/freeipa/freeipa-container/issues/279
The recipe of not using bind mounts on MacOS is repeated elsewhere too, this is just most relevant issue in FreeIPA container project.
freeipa-users@lists.fedorahosted.org