generated from yiisoft/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 63
Fix Docker installation for Mac, Windows, and Linux #432
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
Draft
Copilot
wants to merge
3
commits into
master
Choose a base branch
from
copilot/fix-docker-installation-issue
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: samdark <47294+samdark@users.noreply.github.com>
Co-authored-by: samdark <47294+samdark@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix Docker installation issue in README
Fix Docker installation for Mac, Windows, and Linux
Jan 12, 2026
|
@samdark I can't confirm that the copilot worked but this worked well for me under Alpine Linux over wsl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Docker installation failed on Mac (GID 20 conflict), Windows (invalid environment variables), and had a critical bug affecting all platforms.
Changes
docker/Dockerfile:
useraddusing${GROUP_NAME}instead of${USER_NAME}for username parametergetent group ${GROUP_ID} || groupadd ...to handle pre-existing groupschownto use${GROUP_ID}instead of${GROUP_NAME}for consistencyMakefile:
id -uandid -gExample
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
pecl.php.net/usr/local/bin/php /usr/local/bin/php -C -q -d include_path=/usr/local/lib/php -d date.timezone=UTC -d output_buffering=1 -d variables_order=EGPCS -d safe_mode=0 -d register_argc_argv=On /usr/local/lib/php/peclcmd.php channel-update pecl.php.net(dns block)/usr/local/bin/php /usr/local/bin/php -C -q -d include_path=/usr/local/lib/php -d date.timezone=UTC -d output_buffering=1 -d variables_order=EGPCS -d safe_mode=0 -d register_argc_argv=On /usr/local/lib/php/peclcmd.php channel-update pecl.php.net /usr/bin/sed ine(dns block)/usr/local/bin/php /usr/local/bin/php -C -q -d include_path=/usr/local/lib/php -d date.timezone=UTC -d output_buffering=1 -d variables_order=EGPCS -d safe_mode=0 -d register_argc_argv=On /usr/local/lib/php/peclcmd.php install xdebug ]\)/\\\1/g /usr/bin/sed(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This section details on the original issue you should resolve
<issue_title>Installation with Docker doesn't work</issue_title>
<issue_description>To reproduce the issue just follow "Installation with Docker" section of README.md.
What is the expected result?
Get app installed and set up
What do you get instead?
Error:
Additional info
<agent_instructions>Fix Makefile so it works in all these environments mentioned.</agent_instructions>
Comments on the Issue (you are @copilot in this section)
@samdark What do you have if you run `id` in a local console? @xepozz What Mac do you have? Also send please `whereis brew` result @xepozz I think it's better to create a new user and run docker there @samdark It is OK. The problem is Mac-specific. I'll solve it a bit later. @samdark ``` => ERROR [app dev 3/3] RUN groupadd --gid 20 appuser; useradd --gid 20 --uid 501 appuser; setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/frankenphp; chown - 0.2s ------ > [app dev 3/3] RUN groupadd --gid 20 appuser; useradd --gid 20 --uid 501 appuser; setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/frankenphp; chown -R appuser:appuser /data/caddy && chown -R appuser:appuser /config/caddy: 0.133 groupadd: GID '20' already exists 0.138 useradd warning: appuser's uid 501 outside of the UID_MIN 1000 and UID_MAX 60000 range. 0.202 chown: invalid group: 'appuser:appuser' ------ failed to solve: process "/bin/sh -c groupadd --gid ${GROUP_ID} ${GROUP_NAME}; useradd --gid ${GROUP_ID} --uid ${USER_ID} ${GROUP_NAME}; \tsetcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/frankenphp...💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.