Skip to content
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` process finished with exit code 17 #172

Open
rucaua opened this issue Oct 3, 2024 · 1 comment
Open

docker-compose` process finished with exit code 17 #172

rucaua opened this issue Oct 3, 2024 · 1 comment

Comments

@rucaua
Copy link

rucaua commented Oct 3, 2024

compose up dev fails with ``docker-compose process finished with exit code 17 on win11

to replicate:

  1. clone repo
  2. copy env-dist to .env
  3. change
    PHP_BASE_IMAGE_VERSION=8.2-apache
    to
    PHP_BASE_IMAGE_VERSION=8.3-apache
  4. run docker-compose up php-dev

console:

 => [php-dev dev 6/7] RUN chmod 755         /usr/local/bin/docker-php-entrypoint         /usr/local/bin/composer                                          0.6s 
 => ERROR [php-dev dev 7/7] RUN curl -sS https://getcomposer.org/installer | php --         --filename=composer.phar         --install-dir=/usr/local/bi  2.1s 
------
 > [php-dev dev 7/7] RUN curl -sS https://getcomposer.org/installer | php --         --filename=composer.phar         --install-dir=/usr/local/bin &&     composer clear-cache:
0.904 All settings correct for using Composer
0.905 Downloading...
2.076
2.076 Composer (version 2.8.0) successfully installed to: /usr/local/bin/composer.phar
2.076 Use it: php /usr/local/bin/composer.phar
2.076
2.081 /usr/bin/env: 'bash\r': No such file or directory
2.081 /usr/bin/env: use -[v]S to pass options in shebang lines
------
failed to solve: process "/bin/sh -c curl -sS https://getcomposer.org/installer | php --         --filename=composer.phar         --install-dir=/usr/local/bin &&     composer clear-cache" did not complete successfully: exit code: 127
`docker-compose` process finished with exit code 17

actually had another issue with docker-compose build:
\yii2-docker\docker-compose.yml:docker-compose.apache.yml: The system cannot find the file specified.
probably it is windows problem. but still

@schmunk42
Copy link
Contributor

schmunk42 commented Oct 9, 2024

Try to uncomment this line:

# COMPOSE_PATH_SEPARATOR=:

in .env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants