+
Skip to content

WSL prerelease breaks docker startup init with ulimit -Hn 524288 #12985

@borjamunozf

Description

@borjamunozf

Windows Version

10.0.22631.5335

WSL Version

2.5.7

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

Ubuntu 24.04

Other Software

No response

Repro Steps

  1. Same file /etc/wsl.conf including
[boot]
command = "service docker start; service cron start; vcan"
...
  1. Update to prerelease from 2.4.10
  2. Shutdown wsl
  3. Start distro again shows Docker service down, failed to start because **/etc/init.d/docker:62 ulimit: error setting limit (Invalid argument)
  4. Faulty command: ulimit -Hn 524288
  5. Run that command manually also shows: -bash: ulimit: open files: cannot modify limit: invalid argument

Expected Behavior

Docker service is able to start at boot like in previous releases (2.4.10 latest one I tested)

Actual Behavior

Docker service cannot start at boot after updating to prelease 2.5.7, but it can be started manually afterwards:

sudo service docker restart

Diagnostic Logs

Docker info

Client: Docker Engine - Community
 Version:    28.1.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.23.0
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.35.1
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

OS Release:

PRETTY_NAME="Ubuntu 24.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.2 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载