We were using an old ubuntu docker image in past and I am trying to update it to use Ubuntu 20.04. I am getting the following error while building the image:
2022-01-07T12:38:09.467-08:00 Step 1/25 : FROM ubuntu:20.04
2022-01-07T12:38:09.467-08:00 20.04: Pulling from library/ubuntu
2022-01-07T12:38:09.467-08:00 toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit
We did not face this issue earlier when we were building image using older Ubuntu versions.
I am quite new to docker. Following is the starting of my docker file:
FROM ubuntu:20.04
ENV DOCKER_BUCKET="download.docker.com" \
DOCKER_VERSION="17.09.0-ce" \
DOCKER_CHANNEL="stable" \
DOCKER_SHA256="1323443242" \
DIND_COMMIT="42432322" \
DOCKER_COMPOSE_VERSION="1.21.2" \
GITVERSION_VERSION="3.6.5" \
DEBIAN_FRONTEND="noninteractive"
Any help on how can I resolve this issue?
PS - we build and then push this image to Amazon ECR.
I solved this issue by changing my docker file to use Ubuntu image from Amazon ECR.
FROM public.ecr.aws/lts/ubuntu:latest