amazonlinux / amazon-linux-2023

Amazon Linux 2023
https://aws.amazon.com/linux/amazon-linux-2023/
Other
523 stars 39 forks source link

[Bug] - Typo in Docker systemd service file #522

Closed kivengh closed 9 months ago

kivengh commented 11 months ago

Describe the bug There is a typo in systemd docker service file, line 20. It's written LimitNOFILE=inifity instead of LimitNOFILE=infinity.

You can see this error in systemd journal :

Oct 20 11:08:39 myhost systemd[1]: /usr/lib/systemd/system/docker.service:20: Failed to parse resource value, ignoring: inifity
Oct 20 11:08:52 myhost systemd[1]: /usr/lib/systemd/system/docker.service:20: Failed to parse resource value, ignoring: inifity

To Reproduce Steps to reproduce the behavior:

  1. Install docker
  2. Start docker

Expected behavior No more error messages.

scottjr22 commented 11 months ago

As a workaround, I edited line 20 in /usr/lib/systemd/system/docker.service and systemctl restart docker.

kivengh commented 11 months ago

I did the same. It works as expected.

mwebber commented 11 months ago

Line 20 with the error looks like this: LimitNOFILE=inifity But I see the same parameter repeated on line 37, this time with the correct spelling: LimitNOFILE=infinity

So the correct fix is presumably to delete, rather than edit, line 20.

nmeyerhans commented 10 months ago

This will be fixed in an upcoming release. Thanks for reporting it.

nmeyerhans commented 9 months ago

This is fixed as of docker 24.0.5-1.amzn2023.0.3, included in the AL2023.3 release just published.