Docker image


i got this error:

Using Docker executor with image
Pulling docker image mysql:latest …
Starting service mysql:latest …
Waiting for services to be up and running…
Pulling docker image
ERROR: Preparation failed: invalid character ‘<’ looking for beginning of value

I used boot2docker on window 7 to push the image.


FROM php:7.0

# We need to install dependencies only for Docker
RUN [[ ! -e /.dockerenv ]] && exit 0

RUN set -xe

# Install git (the php image doesn't have it) which is required by composer
RUN apt-get update -yqq
RUN apt-get install apt-transport-https curl wget unzip libmcrypt-dev libicu-dev libcurl4-gnutls-dev libpng-dev libsqlite3-dev -y
RUN apt-get install git -yqq  

# Install php extensions
RUN docker-php-ext-install intl curl gd mbstring pdo_sqlite pdo_mysql pcntl mcrypt

# Install Composer
RUN php -r "readfile('');" > composer-setup.php
RUN php composer-setup.php --install-dir=/usr/local/bin --filename=composer
RUN php -r "unlink('composer-setup.php');"
RUN chmod +x /usr/local/bin/composer