I got strange error building custom Laravel container: curl can not resolve repo.packagist.org
Basic image Dockerfile (tagged: registry.axel-verse.ml/axel_verse/php81
):
FROM ubuntu:latest
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
RUN echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf \
&& apt update \
&& apt install software-properties-common -y \
&& add-apt-repository ppa:ondrej/php -y \
&& apt dist-upgrade -y \
&& echo 'tzdata tzdata/Areas select Europe' | debconf-set-selections \
&& echo 'tzdata tzdata/Zones/Europe select Moscow' | debconf-set-selections \
&& DEBIAN_FRONTEND="noninteractive" apt install -y tzdata
RUN apt install php8.1-bcmath \
php8.1-bz2 \
php8.1-cli \
php8.1-curl \
php8.1-gd \
php8.1-gettext \
php8.1-imagick \
php8.1-intl \
php8.1-mbstring \
php8.1-mongodb \
php8.1-opcache \
php8.1-pgsql \
php8.1-readline \
php8.1-redis \
php8.1-sqlite3 \
php8.1-swoole \
php8.1-tidy \
php8.1-xml \
php8.1-zip \
zip curl imagemagick tidy cron git iputils-ping -y
Laravel container dockerfile
FROM registry.axel-verse.ml/axel_verse/php81 as prod
WORKDIR /var/www/html
COPY . /var/www/html
RUN chown www-data:www-data /var/www -Rv
RUN echo -e "opcache.enable=1\nopcache.jit_buffer_size=128\nopcache.jit=tracing" >> /etc/php/8.1/mods-available/opcache.ini
USER www-data
RUN cat /etc/resolv.conf \
&& ping 10.8.0.1 -c 4 \
&& ping google.com -c 4 \
&& ping repo.packagist.org -c 4 \
&& curl -vvvv https://repo.packagist.org/packages.json\
&& composer install --no-dev \
&& php artisan optimize
.drone.yml
name: default
type: docker
kind: pipeline
steps:
- name: deploy-dev
image: plugins/docker
settings:
registry: registry.axel-verse.ml
repo: registry.axel-verse.ml/axel_verse/wh-api
target: prod
username:
from_secret: registry_username
password:
from_secret: registry_password
tags: dev
force_tag: true
insecure: false
image_pull_secrets:
- dockerconfigjson
Build log:
latest: Pulling from plugins/docker
Digest: sha256:80aada37d4fb175784281931b45da53f1ec8ba176046f6e3b32095e7551eec96
Status: Image is up to date for plugins/docker:latest
+ /usr/local/bin/dockerd --data-root /var/lib/docker --host=unix:///var/run/docker.sock
Detected registry credentials
+ /usr/local/bin/docker version
Client:
Version: 20.10.9
API version: 1.41
Go version: go1.16.8
Git commit: c2ea9bc
Built: Mon Oct 4 16:03:22 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.9
API version: 1.41 (minimum version 1.12)
Go version: go1.16.8
Git commit: 79ea9d3
Built: Mon Oct 4 16:07:30 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.4.11
GitCommit: 5b46e404f6b9f661a205e28d59c982d3634148f8
runc:
Version: 1.0.2
GitCommit: v1.0.2-0-g52b36a2d
docker-init:
Version: 0.19.0
GitCommit: de40ad0
+ /usr/local/bin/docker info
Client:
Context: default
Debug Mode: false
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 20.10.9
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc io.containerd.runc.v2 io.containerd.runtime.v1.linux
Default Runtime: runc
Init Binary: docker-init
containerd version: 5b46e404f6b9f661a205e28d59c982d3634148f8
runc version: v1.0.2-0-g52b36a2d
init version: de40ad0
Security Options:
seccomp
Profile: default
cgroupns
Kernel Version: 5.15.0-30-generic
Operating System: Alpine Linux v3.14
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.762GiB
Name: ef6d6083a28e
ID: NO74:GW6O:RW6B:R4PY:CIJV:LXCI:CIRI:NXL7:6MNC:7K2Q:YTQV:5DQW
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
+ /usr/local/bin/docker build --rm=true -f Dockerfile -t a0c662f5aa8c15ed09774ba512d893ce4eb3eabf . --pull=true --target prod --label org.opencontainers.image.created=2022-05-13T23:27:53Z --label org.opencontainers.image.revision=a0c662f5aa8c15ed09774ba512d893ce4eb3eabf --label org.opencontainers.image.source=https://gitlab.com/axel-verse/wh.laravel.git --label org.opencontainers.image.url=https://gitlab.com/axel-verse/wh.laravel
Sending build context to Docker daemon 458.2kB
Step 1/11 : FROM registry.axel-verse.ml/axel_verse/php81 as prod
latest: Pulling from axel_verse/php81
125a6e411906: Pulling fs layer
3c9ce266eaae: Pulling fs layer
ffd902ae2e77: Pulling fs layer
f731ec03fcbe: Pulling fs layer
f731ec03fcbe: Waiting
3c9ce266eaae: Verifying Checksum
125a6e411906: Verifying Checksum
125a6e411906: Download complete
ffd902ae2e77: Verifying Checksum
ffd902ae2e77: Download complete
f731ec03fcbe: Verifying Checksum
f731ec03fcbe: Download complete
125a6e411906: Pull complete
3c9ce266eaae: Pull complete
ffd902ae2e77: Pull complete
f731ec03fcbe: Pull complete
Digest: sha256:a393fa5c62ee5e7a8472fd1861e3e1817ae6991076d922fedeced9700798a719
Status: Downloaded newer image for registry.axel-verse.ml/axel_verse/php81:latest
---> 39e19313bbf8
Step 2/11 : WORKDIR /var/www/html
---> Running in 666e17422ae7
Removing intermediate container 666e17422ae7
---> 00418c549996
Step 3/11 : COPY . /var/www/html
---> 637bed0dea8f
Step 4/11 : RUN chown www-data:www-data /var/www -Rv
---> Running in 8b56ebf4f24e
changed ownership of '/var/www/html/.styleci.yml' from root:root to www-data:www-data
changed ownership of '/var/www/html/.env.example' from root:root to www-data:www-data
changed ownership of '/var/www/html/composer.json' from root:root to www-data:www-data
changed ownership of '/var/www/html/.env.prod' from root:root to www-data:www-data
changed ownership of '/var/www/html/storage/app/.gitignore' from root:root to www-data:www-data
changed ownership of '/var/www/html/storage/app/public/.gitignore' from root:root to www-data:www-data
changed ownership of '/var/www/html/storage/app/public' from root:root to www-data:www-data
changed ownership of '/var/www/html/storage/app' from root:root to www-data:www-data
changed ownership of '/var/www/html/storage/framework/testing/.gitignore' from root:root to www-data:www-data
changed ownership of '/var/www/html/storage/framework/testing' from root:root to www-data:www-data
changed ownership of '/var/www/html/storage/framework/views/.gitignore' from root:root to www-data:www-data
changed ownership of '/var/www/html/storage/framework/views' from root:root to www-data:www-data
changed ownership of '/var/www/html/storage/framework/.gitignore' from root:root to www-data:www-data
changed ownership of '/var/www/html/storage/framework/sessions/.gitignore' from root:root to www-data:www-data
changed ownership of '/var/www/html/storage/framework/sessions' from root:root to www-data:www-data
changed ownership of '/var/www/html/storage/framework/cache/data/.gitignore' from root:root to www-data:www-data
changed ownership of '/var/www/html/storage/framework/cache/data' from root:root to www-data:www-data
changed ownership of '/var/www/html/storage/framework/cache/.gitignore' from root:root to www-data:www-data
changed ownership of '/var/www/html/storage/framework/cache' from root:root to www-data:www-data
changed ownership of '/var/www/html/storage/framework' from root:root to www-data:www-data
changed ownership of '/var/www/html/storage/logs/.gitignore' from root:root to www-data:www-data
changed ownership of '/var/www/html/storage/logs' from root:root to www-data:www-data
changed ownership of '/var/www/html/storage' from root:root to www-data:www-data
changed ownership of '/var/www/html/lang/en/passwords.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/lang/en/validation.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/lang/en/pagination.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/lang/en/auth.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/lang/en' from root:root to www-data:www-data
changed ownership of '/var/www/html/lang/en.json' from root:root to www-data:www-data
changed ownership of '/var/www/html/lang' from root:root to www-data:www-data
changed ownership of '/var/www/html/.dockerignore' from root:root to www-data:www-data
changed ownership of '/var/www/html/webpack.mix.js' from root:root to www-data:www-data
changed ownership of '/var/www/html/.editorconfig' from root:root to www-data:www-data
changed ownership of '/var/www/html/.gitignore' from root:root to www-data:www-data
changed ownership of '/var/www/html/README.md' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Http/Middleware/TrustProxies.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Http/Middleware/TrustHosts.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Http/Middleware/TrimStrings.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Http/Middleware/VerifyCsrfToken.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Http/Middleware/RedirectIfAuthenticated.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Http/Middleware/Authenticate.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Http/Middleware/PreventRequestsDuringMaintenance.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Http/Middleware/EncryptCookies.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Http/Middleware' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Http/Kernel.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Http/Controllers/SearchController.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Http/Controllers/Controller.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Http/Controllers/ImageController.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Http/Controllers' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Http' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Exceptions/Handler.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Exceptions' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Providers/AppServiceProvider.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Providers/EventServiceProvider.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Providers/BroadcastServiceProvider.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Providers/AuthServiceProvider.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Providers/RouteServiceProvider.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Providers' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Models/User.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Models/Image.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Models/Category.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Models/Tag.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Models' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Jobs/CreateNewImageJob.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Jobs' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Console/Kernel.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/app/Console' from root:root to www-data:www-data
changed ownership of '/var/www/html/app' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/hooks/pre-commit.sample' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/hooks/pre-applypatch.sample' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/hooks/pre-receive.sample' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/hooks/commit-msg.sample' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/hooks/applypatch-msg.sample' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/hooks/update.sample' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/hooks/pre-rebase.sample' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/hooks/pre-merge-commit.sample' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/hooks/prepare-commit-msg.sample' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/hooks/post-update.sample' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/hooks/fsmonitor-watchman.sample' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/hooks/pre-push.sample' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/hooks' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/info/exclude' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/info' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/FETCH_HEAD' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/objects/info' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/objects/pack/pack-75ebb3c739fdf5ce05340c4874a8c2479a28f10a.idx' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/objects/pack/pack-75ebb3c739fdf5ce05340c4874a8c2479a28f10a.pack' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/objects/pack' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/objects' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/index' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/description' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/branches' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/HEAD' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/refs/remotes/origin/feature/images' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/refs/remotes/origin/feature' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/refs/remotes/origin' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/refs/remotes' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/refs/heads/feature/images' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/refs/heads/feature' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/refs/heads' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/refs/tags' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/refs' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/config' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/logs/HEAD' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/logs/refs/remotes/origin/feature/images' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/logs/refs/remotes/origin/feature' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/logs/refs/remotes/origin' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/logs/refs/remotes' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/logs/refs/heads/feature/images' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/logs/refs/heads/feature' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/logs/refs/heads' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/logs/refs' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git/logs' from root:root to www-data:www-data
changed ownership of '/var/www/html/.git' from root:root to www-data:www-data
changed ownership of '/var/www/html/bootstrap/app.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/bootstrap/cache/.gitignore' from root:root to www-data:www-data
changed ownership of '/var/www/html/bootstrap/cache' from root:root to www-data:www-data
changed ownership of '/var/www/html/bootstrap' from root:root to www-data:www-data
changed ownership of '/var/www/html/phpunit.xml' from root:root to www-data:www-data
changed ownership of '/var/www/html/.env.docker' from root:root to www-data:www-data
changed ownership of '/var/www/html/public/favicon.ico' from root:root to www-data:www-data
changed ownership of '/var/www/html/public/robots.txt' from root:root to www-data:www-data
changed ownership of '/var/www/html/public/index.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/public/.htaccess' from root:root to www-data:www-data
changed ownership of '/var/www/html/public' from root:root to www-data:www-data
changed ownership of '/var/www/html/database/seeders/DatabaseSeeder.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/database/seeders' from root:root to www-data:www-data
changed ownership of '/var/www/html/database/.gitignore' from root:root to www-data:www-data
changed ownership of '/var/www/html/database/factories/UserFactory.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/database/factories' from root:root to www-data:www-data
changed ownership of '/var/www/html/database/migrations/2022_04_29_121729_create_tags_table.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/database/migrations/2014_10_12_100000_create_password_resets_table.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/database/migrations/2022_04_29_121757_image_tag.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/database/migrations/2022_04_21_213148_create_images_table.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/database/migrations/2014_10_12_000000_create_users_table.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/database/migrations/2022_04_29_121728_create_categories_table.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/database/migrations/2019_08_19_000000_create_failed_jobs_table.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/database/migrations' from root:root to www-data:www-data
changed ownership of '/var/www/html/database' from root:root to www-data:www-data
changed ownership of '/var/www/html/package.json' from root:root to www-data:www-data
changed ownership of '/var/www/html/tests/TestCase.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/tests/CreatesApplication.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/tests' from root:root to www-data:www-data
changed ownership of '/var/www/html/test.file' from root:root to www-data:www-data
changed ownership of '/var/www/html/.drone.yml' from root:root to www-data:www-data
changed ownership of '/var/www/html/.gitattributes' from root:root to www-data:www-data
changed ownership of '/var/www/html/routes/web.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/routes/console.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/routes/channels.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/routes/api.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/routes' from root:root to www-data:www-data
changed ownership of '/var/www/html/config/logging.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/config/services.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/config/cache.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/config/filesystems.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/config/hashing.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/config/sanctum.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/config/app.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/config/queue.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/config/scout.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/config/auth.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/config/mail.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/config/view.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/config/session.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/config/database.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/config/broadcasting.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/config/cors.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/config/octane.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/config' from root:root to www-data:www-data
changed ownership of '/var/www/html/.env.testing' from root:root to www-data:www-data
changed ownership of '/var/www/html/resources/css/app.css' from root:root to www-data:www-data
changed ownership of '/var/www/html/resources/css' from root:root to www-data:www-data
changed ownership of '/var/www/html/resources/views/welcome.blade.php' from root:root to www-data:www-data
changed ownership of '/var/www/html/resources/views' from root:root to www-data:www-data
changed ownership of '/var/www/html/resources/js/bootstrap.js' from root:root to www-data:www-data
changed ownership of '/var/www/html/resources/js/app.js' from root:root to www-data:www-data
changed ownership of '/var/www/html/resources/js' from root:root to www-data:www-data
changed ownership of '/var/www/html/resources' from root:root to www-data:www-data
changed ownership of '/var/www/html/artisan' from root:root to www-data:www-data
changed ownership of '/var/www/html' from root:root to www-data:www-data
changed ownership of '/var/www' from root:root to www-data:www-data
Removing intermediate container 8b56ebf4f24e
---> ba275e739333
Step 5/11 : RUN echo -e "opcache.enable=1\nopcache.jit_buffer_size=128\nopcache.jit=tracing" >> /etc/php/8.1/mods-available/opcache.ini
---> Running in fe67cab5afee
Removing intermediate container fe67cab5afee
---> 58ae91c858d2
Step 6/11 : USER www-data
---> Running in 05d826fe49ac
Removing intermediate container 05d826fe49ac
---> 9757156f5b16
Step 7/11 : RUN cat /etc/resolv.conf && ping 10.8.0.1 -c 4 && ping google.com -c 4 && ping repo.packagist.org -c 4 && curl -vvvv https://repo.packagist.org/packages.json && composer install --no-dev && php artisan optimize
---> Running in 01243b6ac174
options ndots:0
nameserver 8.8.8.8
nameserver 8.8.4.4
PING 10.8.0.1 (10.8.0.1) 56(84) bytes of data.
64 bytes from 10.8.0.1: icmp_seq=1 ttl=63 time=0.242 ms
64 bytes from 10.8.0.1: icmp_seq=2 ttl=63 time=0.179 ms
64 bytes from 10.8.0.1: icmp_seq=3 ttl=63 time=0.124 ms
64 bytes from 10.8.0.1: icmp_seq=4 ttl=63 time=0.148 ms
--- 10.8.0.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3073ms
rtt min/avg/max/mdev = 0.124/0.173/0.242/0.044 ms
PING google.com (142.251.1.139) 56(84) bytes of data.
64 bytes from lb-in-f139.1e100.net (142.251.1.139): icmp_seq=1 ttl=108 time=15.5 ms
64 bytes from lb-in-f139.1e100.net (142.251.1.139): icmp_seq=2 ttl=108 time=15.8 ms
64 bytes from lb-in-f139.1e100.net (142.251.1.139): icmp_seq=3 ttl=108 time=15.6 ms
64 bytes from lb-in-f139.1e100.net (142.251.1.139): icmp_seq=4 ttl=108 time=15.7 ms
--- google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 15.504/15.642/15.757/0.092 ms
PING repo.packagist.org (51.75.89.231) 56(84) bytes of data.
64 bytes from 51.75.89.231 (51.75.89.231): icmp_seq=1 ttl=46 time=43.4 ms
64 bytes from 51.75.89.231 (51.75.89.231): icmp_seq=2 ttl=46 time=43.6 ms
64 bytes from 51.75.89.231 (51.75.89.231): icmp_seq=3 ttl=46 time=43.6 ms
64 bytes from 51.75.89.231 (51.75.89.231): icmp_seq=4 ttl=46 time=43.5 ms
--- repo.packagist.org ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 43.436/43.546/43.623/0.070 ms
* getaddrinfo() thread failed to start
* Could not resolve host: repo.packagist.org
* Closing connection 0
curl: (6) getaddrinfo() thread failed to start
The command '/bin/sh -c cat /etc/resolv.conf && ping 10.8.0.1 -c 4 && ping google.com -c 4 && ping repo.packagist.org -c 4 && curl -vvvv https://repo.packagist.org/packages.json && composer install --no-dev && php artisan optimize' returned a non-zero code: 6
exit status 6
e[0m
I’ve tried to change docker DNS and to use custom_dns docker plugin option but no luck.
Please help. I’m stuck