ArchWSL icon indicating copy to clipboard operation
ArchWSL copied to clipboard

Docker Desktop WSL Integration not working: `[2304] Error loading Python lib ...`

Open sigurdo opened this issue 2 years ago • 1 comments

Docker Desktop WSL Integration: I am not able to run docker-compose from the ArchWSL command line interface. Instead I get the following error:

[sigurd@Omar ~]$ docker-compose
[2304] Error loading Python lib '/tmp/_MEIdqNm0Y/libpython3.7m.so.1.0': dlopen: libcrypt.so.1: cannot open shared object file: No such file or directory

To Reproduce

  • Install Docker Desktop in Windows
  • Install ArchWSL
  • Initialize keyring like described here
  • Upgrade all packages with pacman -Syyu
  • Enable the Docker integration for Arch in Docker Desktop (Settings>Resources>WSL Integration)
  • Run docker-compose in the ArchWSL command line

Expected behavior The normal help output for the docker-compose command

Enviroment:

  • Windows build number: 10.0.22000.739
  • Security Software: Windows Defender
  • WSL version: WSL2
  • ArchWSL version: 22.3.18.0
  • ArchWSL Installer type: zip
  • Launcher version: 22020900

Worthy mentions:

The issue does not occur before you upgrade packages, so if you omit that step the docker-compose command would work nicely, but that is obviously not a good solution. I e.g. had to do this to get a good enough version of GLIBC for several other tools I need to use.

sigurdo avatar Jun 21 '22 21:06 sigurdo

My current solution is to not use Docker Desktop for Windows, but rather natively install docker and docker-compose in Arch WSL. This is a little hassle, since you will have to set up a systemd alternative as specified in the docs to start the docker daemon.

sigurdo avatar Jun 26 '22 14:06 sigurdo

It is solved by installing libxcrypt-compat in Arch

bvolkmer avatar Oct 05 '22 12:10 bvolkmer

Wow, thanks, it works perfectly!

sigurdo avatar Oct 05 '22 13:10 sigurdo