skip to Main Content

enter image description here

I’ve been trying to run docker with laravel for a very long time. But nothing works for me, Everything works on the local server, but not on the cloud

This is my first question here, I’m sorry if that

RUN docker-php-ext-install pdo pdo_mysql – He constantly stops at this

2

Answers


  1. Could you please provide the code of the docker-compose, if you are not using docker-compose I would try this:

    docker run php-ext-install pdo pdo_mysql
    
    Login or Signup to reply.
  2. Maybe this is because of the image you are using?

    I have a Dockerfile that contains the following (which runs without problems):

    # syntax=docker/dockerfile:experimental
    FROM php:8.1-fpm
    RUN docker-php-ext-install mysqli pdo pdo_mysql gd zip
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search