Eos: Service nodeos has neither an image nor a build context specified. At least one must be provided.

Created on 6 May 2018  路  1Comment  路  Source: EOSIO/eos

$ cat docker-compose.override.yml 
version: "3"

services:
  nodeos:
    volumes:
      - nodeos-data-volume:/opt/eos/bin/data-dir
      - ./config2.ini:/opt/eos/bin/data-dir/config.ini
$ docker-compose up
ERROR: The Compose file is invalid because:
Service nodeos has neither an image nor a build context specified. At least one must be provided.
$ git rev-parse HEAD
c2869543c687da6e225b2c93b6ac5e17311b0d38
Support

Most helpful comment

It's as described by the error message, your docker-compose is missing image or build:context:. You need to specify the image or specify where to build the image from, so the docker can know from which image it can build the container.

If you are trying to override the existing docker-compose.yml, ensure that you put the docker-compose.override.yml in the same folder as docker-compose.yml and run the above command from the same folder

>All comments

It's as described by the error message, your docker-compose is missing image or build:context:. You need to specify the image or specify where to build the image from, so the docker can know from which image it can build the container.

If you are trying to override the existing docker-compose.yml, ensure that you put the docker-compose.override.yml in the same folder as docker-compose.yml and run the above command from the same folder

Was this page helpful?
0 / 5 - 0 ratings

Related issues

congnghebitcoin picture congnghebitcoin  路  3Comments

toonsevrin picture toonsevrin  路  3Comments

hsejin314 picture hsejin314  路  3Comments

xiaomaogy picture xiaomaogy  路  3Comments

Npizza picture Npizza  路  3Comments