markshust / docker-magento

Mark Shust's Docker Configuration for Magento
https://m.academy/courses/set-up-magento-2-development-environment-docker/
MIT License
2.57k stars 1.01k forks source link

i get line 6 bc not found and #1235

Open sridharsikha opened 2 weeks ago

sridharsikha commented 2 weeks ago

Description WARNING: No blkio throttle.read_bps_device support WARNING: No blkio throttle.write_bps_device support WARNING: No blkio throttle.read_iops_device support WARNING: No blkio throttle.write_iops_device support WARNING: daemon is not using the default seccomp profile bin/start: line 6: bc: command not found

Steps To Reproduce

  1. use the setup and the manual steps - on windows - using wsl --install and powershell.

Expected Result no warnings

Actual Result WARNING: No blkio throttle.read_bps_device support WARNING: No blkio throttle.write_bps_device support WARNING: No blkio throttle.read_iops_device support WARNING: No blkio throttle.write_iops_device support WARNING: daemon is not using the default seccomp profile bin/start: line 6: bc: command not found

dusp2k commented 1 week ago

Using version 2.4.7 I can confirm this. Using git-bash on windows in phpstorm I get the same error.

I also see this:

chown: cannot access 'C:/Program Files/Git/var/www/': No such file or directory

The script terminates with this error later on:

cp: cannot stat 'C:/Program Files/Git/var/www/.composer/auth.json': No such file or directory

I don't know why it's using the git folder.

dusp2k commented 1 week ago

After some research I got it working using wsl2.

So don't run the script directly in windows or git-bash. Go into wsl and run the script there.

Also be sure docker desktop has wsl2 enabled.