Skip to content

Commit

Permalink
Workaround 2223863.
Browse files Browse the repository at this point in the history
The systemd-hostnamed.service fails in container.

Jul 19 06:51:07 ipa.example.test systemd[1]: Starting Hostname Service...
Jul 19 06:51:07 ipa.example.test systemd[51]: systemd-hostnamed.service: Failed to set up network namespacing: Operation not permitted
Jul 19 06:51:07 ipa.example.test systemd[51]: systemd-hostnamed.service: Failed at step NETWORK spawning /usr/lib/systemd/systemd-hostnamed: Operation not permitted
Jul 19 06:51:07 ipa.example.test systemd[1]: systemd-hostnamed.service: Main process exited, code=exited, status=225/NETWORK
Jul 19 06:51:07 ipa.example.test systemd[1]: systemd-hostnamed.service: Failed with result 'exit-code'.
Jul 19 06:51:07 ipa.example.test systemd[1]: Failed to start Hostname Service.
  • Loading branch information
adelton committed Jul 19, 2023
1 parent 9178c8a commit 7768cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile.centos-8-stream
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN echo "DefaultLimitNOFILE=1024" >> /etc/systemd/system.conf
ENTRYPOINT [ "/usr/sbin/init" ]
STOPSIGNAL RTMIN+3
# test-addon: VOLUME [ "/var/log/journal" ]
# test: systemd-container-failed.sh var-lib-nfs-rpc_pipefs.mount
# test: systemd-container-failed.sh systemd-hostnamed.service var-lib-nfs-rpc_pipefs.mount

# Minimize the systemd setup
RUN find /etc/systemd/system /usr/lib/systemd/system/{basic,multi-user,sysinit}.target.wants -type l \! -lname /dev/null | xargs rm -v
Expand Down

0 comments on commit 7768cd7

Please sign in to comment.