docker build falhou | Fórum | School of Net

Deseja poder participar de nosso fórum e tirar todas as suas dúvidas?
Clique aqui e assine nosso plano de acesso ilimitado. Saiba mais.

por Ghustavo Felix

3 semanas atrás Ghustavo Felix

docker build falhou

Prezados, O docker build falhou no step 5/10, segue output: ``` root@docker-master:/home/ghustavo/projects/school-of-net/forum-realtime-com-laravel# docker build -t ghustavo/laravelapp:v1 . --file app.Dockerfile Sending build context to Docker daemon 6.779MB Step 1/10 : FROM shakyshane/laravel-php:latest ---> dd18f9511e64 Step 2/10 : COPY composer.lock composer.json /var/www/ ---> 94807835636d Step 3/10 : COPY database /var/www/database ---> 84daca59699b Step 4/10 : WORKDIR /var/www ---> Running in 14dc7f8aca80 Removing intermediate container 14dc7f8aca80 ---> 769367dce8d8 Step 5/10 : RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && php composer-setup.php && php -r "unlink('composer-setup.php');" && php composer.phar install --no-dev --no-scripts && rm composer.phar ---> Running in 24b4441ee22f Warning: copy(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in Command line code on line 1 Warning: copy(): Failed to enable crypto in Command line code on line 1 Warning: copy(https://getcomposer.org/installer): failed to open stream: operation failed in Command line code on line 1 Warning: hash_file(composer-setup.php): failed to open stream: No such file or directory in Command line code on line 1 Installer corrupt Warning: unlink(composer-setup.php): No such file or directory in Command line code on line 1 Could not open input file: composer-setup.php The command '/bin/sh -c php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && php composer-setup.php && php -r "unlink('composer-setup.php');" && php composer.phar install --no-dev --no-scripts && rm composer.phar' returned a non-zero code: 1 ```

3 Respostas