I'm trying to set up a docker container on Debian 9.8, but I keep getting the following error when I run docker-compose up -d
:
W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found
Which then causes the process to be cut short.
I have the following Dockerfile (shortened for readability) with 2 calls to apt-get update
that I have modified with suggestions from these pages to no avail:
RUN echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie main" > /etc/apt/sources.list.d/jessie.list
RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
RUN apt-get -o Acquire::Check-Valid-Until=false update
RUN sed -i '/jessie-updates/d' /etc/apt/sources.list
RUN apt-get update
I also removed any references I could find to jessie in /etc/apt/sources/list
. What am I missing?
EDIT I didn't realise there were multipls dockerfiles in the project, so I edited all of them one by one. That said, is there a way of centralizing the process?