instalar projeto docker
Carlos,
criei um projeto laravel 8, coloquei os arquivos de cfg do docker conforme o link:
https://github.com/especializati/setup-docker-laravel/tree/laravel-8-with-php-7.4
mas , guando na DO , executei docker-compose up -d
deu esse erro:
nginx uses an image, skipping
mysql uses an image, skipping
redis uses an image, skipping
Building queue
Step 1/12 : FROM php:7.4-fpm
---> 38f2b691dcb8
Step 2/12 : ARG user
---> Using cache
---> 8dd56df05918
Step 3/12 : ARG uid
---> Using cache
---> 6cfccc68f886
Step 4/12 : RUN apt-get update && apt-get install -y git curl libpng-dev libonig-dev libxml2-dev zip unzip
ERROR: Service 'queue' failed to build: failed to create shim task:
OCI runtime create failed: runc create failed: unable to start container process:
error during container init:
error mounting "/var/lib/docker/containers/ff09748df146a9772948fe1e3b0cbd2ac3c8af894b284b3e09982b8df2eb9fee/resolv.conf" to rootfs at "/etc/resolv.conf":
possibly malicious path detected -- refusing to operate on /etc/resolv.conf: unknown
Como não pretende rodar local, cria um novo droplet com a mesma distro e usa ela como testes, uma vez funcionando, você sabe o caminho para este outro droplet;
Carlos, eu desistalei o docker e instalei
novamente. disparei o "sudo systemctl status docker" , mostrou ativo
então fui pra pasta do projeto rodadar , apareceu isto :
[root@web mentoria]# docker-compose up -d
Building app
Step 1/12 : FROM php:8.1-fpm
---> 5878ca832449
Step 2/12 : ARG user=carlos
---> Using cache
---> e0d46ea840ba
Step 3/12 : ARG uid=1000
---> Using cache
---> 76e758c8e289
Step 4/12 : RUN apt-get update && apt-get install -y git curl libpng-dev libonig-dev libxml2-dev
zip unzip
---> Running in ba621b39cede
Err:1 http://deb.debian.org/debian bullseye InRelease
Temporary failure resolving 'deb.debian.org'
Err:2 http://deb.debian.org/debian-security bullseye-security InRelease
Temporary failure resolving 'deb.debian.org'
Err:3 http://deb.debian.org/debian bullseye-updates InRelease
Temporary failure resolving 'deb.debian.org'
Reading package lists...
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian-security/dists/bullseye-security/InRelease Temporary failure resolving
'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease Temporary failure resolving 'deb.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
Package git is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'git' has no installation candidate
E: Unable to locate package libpng-dev
E: Unable to locate package libonig-dev
E: Unable to locate package libxml2-dev
E: Unable to locate package zip
E: Unable to locate package unzip
ERROR: Service 'app' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y git curl
libpng-dev libonig-dev libxml2-dev zip unzip' returned a non-zero code: 100
Em outro droplet, com a mesma distro, funciona?
Sobe um novo droplet, só para validar se está tudo ok;
Precisa estar logado para conseguir responder a este ticket!
Clique Aqui Para Entrar!