Erro #56 ao subir container
[Concluído]
Ao executar o seguinte comando $ docker-compose up -d nginx mysql phpmyadmin
estou tendo o seguinte erro
#56 ERROR: process "/bin/sh -c if [ ${INSTALL_NODE} = true ]; then mkdir -p $NVM_DIR && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash && . $NVM_DIR/nvm.sh && nvm install ${NODE_VERSION} && nvm use ${NODE_VERSION} && nvm alias ${NODE_VERSION} && npm cache clear --force && npm config set fetch-retries ${NPM_FETCH_RETRIES} && npm config set fetch-retry-factor ${NPM_FETCH_RETRY_FACTOR} && npm config set fetch-retry-mintimeout ${NPM_FETCH_RETRY_MINTIMEOUT} && npm config set fetch-retry-maxtimeout ${NPM_FETCH_RETRY_MAXTIMEOUT} && if [ ${NPM_REGISTRY} ]; then npm config set registry ${NPM_REGISTRY} ;fi && if [ ${INSTALL_NPM_GULP} = true ]; then npm install -g gulp ;fi && if [ ${INSTALL_NPM_BOWER} = true ]; then npm install -g bower ;fi && if [ ${INSTALL_NPM_VUE_CLI} = true ]; then npm install -g @vue/cli ;fi && if [ ${INSTALL_NPM_ANGULAR_CLI} = true ]; then npm install -g @angular/cli ;fi && if [ ${INSTALL_NPM_CHECK_UPDATES_CLI} = true ]; then npm install -g npm-check-updates ;fi ;fi" did not complete successfully: exit code: 2
------
> [workspace 52/115] RUN if [ true = true ]; then mkdir -p /home/laradock/.nvm && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash && . /home/laradock/.nvm/nvm.sh && nvm install node && nvm use node && nvm alias node && npm cache clear --force && npm config set fetch-retries 2 && npm config set fetch-retry-factor 10 && npm config set fetch-retry-mintimeout 10000 && npm config set fetch-retry-maxtimeout 60000 && if [ ]; then npm config set registry ;fi && if [ true = true ]; then npm install -g gulp ;fi && if [ false = true ]; then npm install -g bower ;fi && if [ true = true ]; then npm install -g @vue/cli ;fi && if [ false = true ]; then npm install -g @angular/cli ;fi && if [ false = true ]; then npm install -g npm-check-updates ;fi ;fi:
00 450 100 450 0 0 1679 0 --:--:-- --:--:-- --:--:-- 1679
1.057 bash: line 2: syntax error near unexpected token `newline'
1.057 bash: line 2: `'
------
failed to solve: process "/bin/sh -c if [ ${INSTALL_NODE} = true ]; then mkdir -p $NVM_DIR && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash && . $NVM_DIR/nvm.sh && nvm install ${NODE_VERSION} && nvm use ${NODE_VERSION} && nvm alias ${NODE_VERSION} && npm cache clear --force && npm config set fetch-retries ${NPM_FETCH_RETRIES} && npm config set fetch-retry-factor ${NPM_FETCH_RETRY_FACTOR} && npm config set fetch-retry-mintimeout ${NPM_FETCH_RETRY_MINTIMEOUT} && npm config set fetch-retry-maxtimeout ${NPM_FETCH_RETRY_MAXTIMEOUT} && if [ ${NPM_REGISTRY} ]; then npm config set registry ${NPM_REGISTRY} ;fi && if [ ${INSTALL_NPM_GULP} = true ]; then npm install -g gulp ;fi && if [ ${INSTALL_NPM_BOWER} = true ]; then npm install -g bower ;fi && if [ ${INSTALL_NPM_VUE_CLI} = true ]; then npm install -g @vue/cli ;fi && if [ ${INSTALL_NPM_ANGULAR_CLI} = true ]; then npm install -g @angular/cli ;fi && if [ ${INSTALL_NPM_CHECK_UPDATES_CLI} = true ]; then npm install -g npm-check-updates ;fi ;fi" did not complete successfully: exit code: 2
Olá, tudo bem?
Qual o seu sistema operacional? É MAC com processador M1?
Usou esse setup?
github.com/especializati/setup-docker-laravel/
Tudo bem!!
Windows 10.
Consegui fazer funcionar usando o link do repositório diretamente da página do Laradock.
Precisa estar logado para conseguir responder a este ticket!
Clique Aqui Para Entrar!