postlight / headless-wp-starter

🔪 WordPress + React Starter Kit: Spin up a WordPress-powered React app in one step
https://archive.postlight.com/labs/wordpress-react-starter-kit
GNU General Public License v2.0
4.47k stars 652 forks source link

Docker compose ERROR #360

Open billiemead opened 6 months ago

billiemead commented 6 months ago

Windows 11 VS Code etc.

I ran docker-compose up -d and it looks like it almost made it, but I got the following error:

 => ERROR [wp-headless 4/9] RUN apt-get update;  apt-get install -yq mariadb-client netcat sudo less git unzip                                                                       3.3s 
------
 > [wp-headless 4/9] RUN apt-get update;        apt-get install -yq mariadb-client netcat sudo less git unzip:
0.670 Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
0.733 Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
0.801 Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
0.883 Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8786 kB]
1.285 Get:5 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [12.7 kB]
1.334 Get:6 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [146 kB]
2.024 Fetched 9200 kB in 2s (5791 kB/s)
2.024 Reading package lists...
2.495 Reading package lists...
3.016 Building dependency tree...
3.164 Reading state information...
3.168 Package netcat is a virtual package provided by:
3.168   netcat-openbsd 1.219-1
3.168   netcat-traditional 1.10-47
3.168
3.170 E: Package 'netcat' has no installation candidate
------
failed to solve: process "/bin/sh -c apt-get update; \tapt-get install -yq mariadb-client netcat sudo less git unzip" did not complete successfully: exit code: 100

Any help? Or is there more I need to provide? Cheers~

billiemead commented 6 months ago

In docker file I changed netcat to netcat-traditional and it was resolved and installed.