compneuro-ncu/fmridenoise

docker build fails

hfxcarl opened this issue · 2 comments

Docker build fails after downloading fmridenoise-0.2.1.tar.gz on my Mac OS 10.15.7 with Docker v3.2.2. The output error:
$ docker build .
[+] Building 8.7s (7/12)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 407B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:focal 0.0s
=> [1/8] FROM docker.io/library/ubuntu:focal 0.0s
=> [internal] load build context 0.8s
=> => transferring context: 31.67MB 0.7s
=> [2/8] RUN apt update 7.3s
=> ERROR [3/8] RUN apt upgrade 1.2s

[3/8] RUN apt upgrade:
#5 0.262
#5 0.262 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
#5 0.262
#5 0.292 Reading package lists...
#5 0.926 Building dependency tree...
#5 1.061 Reading state information...
#5 1.078 Calculating upgrade...
#5 1.197 The following packages will be upgraded:
#5 1.197 libsystemd0 libudev1 libzstd1
#5 1.201 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
#5 1.201 Need to get 592 kB of archives.
#5 1.201 After this operation, 2048 B of additional disk space will be used.
#5 1.201 Do you want to continue? [Y/n] Abort.


executor failed running [/bin/sh -c apt upgrade]: exit code: 1

It seems the error is with the Dockerfile 'Run apt upgrade' line. Adjusting this to the following fixed the problem.
RUN apt-get update && apt-get upgrade -y

Thank you. I downloaded the tar.gz file, latest build. Unzipped it. cd'd into folder. Changed the Docker file within to have the -y within it like you described, then ran Docker build . . And this appears so far to have worked.