Docker Community Forums

Share and learn in the Docker community.

Problems with new beta release 1.12.0-rc2-beta16 (build: 9493)


(Head82) #1

Expected behavior

docker-compser build [application] should run without failures

Actual behavior

all my builds exit with an error like this:

Step 6 : WORKDIR [any path]
ERROR: compose.cli.main.main: Service ‘[any application]’ failed to build: cannot normalise nothing

Information

this happens since beta16. it was working with beta15
is there a way to downgrade to beta15 temporary?

Diagnostic ID: 9DEDB1BA-BB56-4461-91AC-DDCF609C83F2

This is my Dockerfile:

FROM php:7.0.7-cli
MAINTAINER example <info@example.com>

RUN apt-get update && apt-get install -y \
    git \
    htop \    
    less \
    libfreetype6-dev \
    libicu-dev \
    libjpeg62-turbo-dev \
    libmcrypt-dev \
    libpng12-dev \
    libxslt1-dev \
&& rm -rf /var/lib/apt/lists/*

RUN docker-php-ext-configure \
    gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/

RUN docker-php-ext-install \
    gd \
    intl \
    mbstring \
    mcrypt \
    opcache \
    soap \
    xsl \
    zip

WORKDIR ${APP_DIR}

EXPOSE 8080

CMD php -S 0.0.0.0:8080 -t ${APP_DIR}/public ${APP_DIR}/public/index.php

This is my .env file:

APP_DIR=/mnt/payback-extint
APP_COMPOSER_HOME=/var/composer

This is my docker-compose.yaml file:

extint:
    env_file: .env
    build: build/docker/extint
    volumes_from:
        - extintdata
        - composerdata
    ports:
        - 8003:8080

extintdata:
    env_file: .env
    image: tianon/true
    volumes:
        - ./src:${APP_DIR}

composerdata:
    image: tianon/true
    volumes:
        - ~/.composer:${APP_COMPOSER_HOME}

(Dcmwong) #2

Similarly would like to know if there is a way to downgrade.


(Russell Matney) #3

Unexpectedly experiencing this error message when using WORKDIR $WHATEVER_ENV_VAR as well - have worked around it in my dockerfiles for now.

Beta version: Version 1.12.0-rc3-beta18 (build: 9996)


(Postup) #4

I have a little more information on this.

I got the error when it reached WORKDIR $VARDIR but only if $VARDIR was in a chain of ENV variables.

Example of broken behavior:
ENV container docker
VARDIR /opt/mydir
WORKDIR $VARDIR

Example of working correctly behavior:
ENV container docker
ENV VARDIR /opt/mydir
WORKDIR $VARDIR