Home > Software design >  Docker -- tried to fix issue, made it much worse
Docker -- tried to fix issue, made it much worse

Time:10-19

I'm running a MacOS. I'm not very familiar with docker and I was following the online examples on how to use docker files when I followed a trail of bad internet advice and ended up here... I'm trying to install and run this open sourced project: https://github.com/agrimgupta92/derl run the docker command:

docker build -t derl ~Desktop/derl/docker But I'm getting the following error:

[ ] Building 0.1s (2/2) FINISHED                                                         
 => [internal] load build definition from Dockerfile                                0.0s
 => => transferring dockerfile: 37B                                                 0.0s
 => [internal] load .dockerignore                                                   0.0s
 => => transferring context: 2B                                                     0.0s
failed to solve with frontend dockerfile.v0: failed to create LLB definition: base name ($PARENT_IMAGE) should not be blank

This seems like something to fix in the docker file of the github and I'm not experienced enough to know what to do.

CodePudding user response:

here is your command to build the image

set -x

PARENT=ubuntu:16.04
TORCH=cpuonly
TAG=derl
USER_ID=`id -u`

docker build -f ~Desktop/derl/docker/Dockerfile \
  --build-arg PARENT_IMAGE=${PARENT} \
  --build-arg TORCH=${TORCH} \
  --build-arg USER_ID=${USER_ID} \
  -t ${TAG} ~Desktop/derl/docker/
  • Related