Skip to content

Instantly share code, notes, and snippets.

View johndatserakis's full-sized avatar

John Datserakis johndatserakis

View GitHub Profile
johndatserakis /
Last active December 7, 2023 12:01
Install imagick In Docker FROM php:7.1-fpm-alpine


RUN set -ex \
    && apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS imagemagick-dev libtool \
    && pecl install imagick-3.4.3 \
    && docker-php-ext-enable imagick \
    && apk add --no-cache --virtual .imagick-runtime-deps imagemagick \
 && apk del .phpize-deps
johndatserakis /
Last active May 3, 2020 20:11
Bash command to clean unused docker images and solve the max depth exceeded error.
# Getting a "max depth exceeded" error in your docker-compose file? Run these commands to clean our your docker install.
# Stop all running containers
docker stop $(docker ps -aq)
# Delete all docker containers
docker rm $(docker ps -a -q)
# Delete all docker images
docker rmi $(docker images -q)