-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker Compose Example for Windows #578
Comments
We do not test such configuration at all. However, did you enable systemd operations at all in wsl? |
Thanks. After entering my WSL Ubuntu 20.04.6 LTS distro shell and adding Step 1: Stop Docker Desktop.
Step 3: Start Docker Desktop
Note: I guess the |
Thank you for the update, @slominskir. May be you can submit a pull request that modifies the README? |
|
PR created. Odd README -> README.md setup! Means GitHub webpage doesn't preview README changes. Historically I don't think I've ever used absolute volume bind mounts before now and relative ones work as you'd intuitively expect: it's relative to the project directory on the Windows filesystem (which perhaps is simply cloned into the WSL filesystem). Absolute paths starting in the WSL filesystem does make sense though. Thanks. The contention between who's software has the privilege and responsibility to manage Linux PID 1 tasks in a container, systemd vs containerd, is interesting. Sounds like major reason Podman was created. |
Note that containerd is rarely run in a container (unless you are doing something like container in container). The systemd in the FreeIPA container image(s) is simply there, it is set in the ENTRYPOINT to be run by default, and without it the container will not reasonably function. The WSL The systemd you enabled in the WSL is likely only needed to establish the |
The example compose above didn't work until I added the magic Alexander suggested, which was setting |
I trust you. I just tried to clarify what you've actually configured. At the same time, the fact that this particular configuration caused the correct change of behaviour in your setup does not necessarily mean that this is the only or the best approach to do that in general. |
In #579 we discussed what the recommendation should be and while |
I'm looking for a Docker Compose example of launching freeipa-container that works on Windows. Here is an example that doesn't work:
ipa.yml
Fails with:
I've tried various other configurations, but I haven't found the magic combination yet. I'm wondering if it may not work as I've seen discussions suggesting freeipa-container requires systemd and systemd in containers has historically been problematic and still may be in Docker Desktop on Windows. I'm not sure if the volume
/sys/fs/cgroup
is even doing what is expected as the volume may be mounting in Windows.I can override the entrypoint to something like:
And then the container starts fine and I can poke around with:
Not sure what to look for though. If I try running the original entrypoint I see:
Environment:
Fully patched Windows 11 with latest Docker Desktop:
The text was updated successfully, but these errors were encountered: