Skip to content

pull requires valid build path #3513

@tanmayambre

Description

@tanmayambre
docker-compose version
docker-compose version 1.7.0, build 0d7bf73
docker-py version: 1.8.0
CPython version: 2.7.9
OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013

I have a docker-compose file

version: '2'
services:
    xyzservice:
    image: xxx-image
    container_name: xxx_container
    build:
      context: ./somecontext
      dockerfile: Dockerfile.xxx
    networks:
      - some-network

When I want to build the image using docker-compose build, I understand that the _Dockerfile.xxx_ is absolutely required.

But if I just want to pull the image using docker-compose pull why is the Dockerfile.xxx required?

I get the following error on pull command

ERROR: build path ./somecontext either does not exist, is not accessible, or is not a valid URL.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions