Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compose on windows, remote machine linux. latest docker-toolbox v1.12.5 #4257

Closed
airtonix opened this issue Dec 17, 2016 · 1 comment
Closed

Comments

@airtonix
Copy link

version: "2"
services:
  app:
    build:
      context: .
      dockerfile: ./docker/Dockerfile
    ports:
      - 8000:8000
    volumes:
      - ./src/foo:/www/
FROM matriphe/alpine-php:fpm-5.6

ENV TIMEZONE Asia/Jakarta
ENV PHP_MEMORY_LIMIT 512M
ENV MAX_UPLOAD 50M
ENV PHP_MAX_FILE_UPLOAD 200
ENV PHP_MAX_POST 100M
ENV DOCKERIZE_VERSION v0.3.0


RUN apk update && \
	apk add \
		curl make gcc g++ python linux-headers paxctl libgcc libstdc++ gnupg \
		wget bash build-base && \
	rm -rf /var/cache/apk/*


RUN wget https:/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
    && tar xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz -C /usr/local/bin \
    && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz

ADD ./core /opt/install

ADD ./docker/entrypoint.d/* /entrypoint.d/
ADD ./docker/entrypoint.sh /
RUN chmod +x /entrypoint.sh
RUN chmod +x /entrypoint.d/*

WORKDIR /www
ENTRYPOINT '/entrypoint.sh'
CMD ['php -S localhost:8000']
docker-compose build
# output is fine
docker-compose up


ERROR: for app  Cannot create container for service app: Invalid bind mount spec "C:\\Users\\zenobius\\Projects\\other\\aligent\\docker-magento-1\\src\\foo:/www/:rw": Invalid volume specification: 'C:\Users\zenobius\Projects\other\aligent\docker-magento-1\src\foo:/www/:rw'
�[31mERROR�[0m: Encountered errors while bringing up the project.

@airtonix
Copy link
Author

duplicate of #4240

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant