How to install/enable pdo-odbc driver on a php docker container?
问题 I am currently having trouble writing a Dockerfile for my php application. My Dockerfile works but lacks the pdo-odbc driver I need to connect to an MS SQL Server database. Here is my current Dockerfile: FROM php:apache RUN apt-get install && \ apt-get update && \ apt-get install tdsodbc unixodbc unixodbc-dev -y && \ docker-php-ext-configure pdo_odbc --with-pdo-odbc=unixODBC,/usr && \ docker-php-ext-enable pdo_odbc && \ a2enmod rewrite && \ service apache2 restart && \ sed -ri -e 's!/var/www