Docker buildx error: error creating overlay mount to /local/docker/overlay2/ibllu3u12zh3v4tzg1e4if8ez/merged: no such file or directory

I have a Dockerfile that I have been using on a Redhat8 machine (Red Hat Enterprise Linux release 8.7 (Ootpa))
that has a worked fine on docker version 23.0.1, build a5ee5b1
The command also works on Centos7 (CentOS Linux release 7.9.2009 (Core))
Docker version 20.10.12, build e91ed57

However, recently docker version 23.0.5, build bc4487a was installed

Now I get a failure: Here is the command line given:
docker buildx build --build-arg user_pass=[PW Deleted] --progress=plain -t sps_v5.0.25.0 DEVELOPMENT/docker/. --no-cache --network host

DEVELOPMENT/docker . - refers to a link
Dockerfile => Dockerfile_sps_c6

The output of the build command is:

#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 15.20kB done
#2 DONE 0.0s

#3 [internal] load metadata for docker.io/library/centos:6.10
#3 DONE 0.8s

#4 [ 1/41] FROM Docker
#4 CACHED

#5 [ 2/41] RUN ls -l /etc/yum.repos.d/
#5 ERROR: process “/bin/sh -c ls -l /etc/yum.repos.d/” did not complete successfully: error creating overlay mount to /local/docker/overlay2/ibllu3u12zh3v4tzg1e4if8ez/merged: no such file or directory

[ 2/41] RUN ls -l /etc/yum.repos.d/:


Dockerfile:192

190 |
191 | # Fetch repos configuration
192 | >>> RUN ls -l /etc/yum.repos.d/
193 | RUN cat /etc/yum.repos.d/CentOS-Base.repo

194
ERROR: failed to solve: process “/bin/sh -c ls -l /etc/yum.repos.d/” did not complete successfully: error creating overlay mount to /local/docker/overlay2/ibllu3u12zh3v4tzg1e4if8ez/merged: no such file or directory
=============================================================================

Enclosed is a copy of the full Dockerfile.sps_c6

Any suggestions on how to proceed would be valuable.

I am not the system administrator of the system but I am the docker specialist for the system.

Raymond Bambery

Dockerfile.sps_c6


FROM centos:6.10

LABEL maintainer Raymond J. Bambery raymond.j.bambery@jpl.nasa.gov

Fetch repos configuration

RUN ls -l /etc/yum.repos.d/
RUN cat /etc/yum.repos.d/CentOS-Base.repo

Now modify for Centos6 EOL

vault.centos.or has IP address of 205.158.50.46 or 3.22.185.178

RUN sed -i “s/#baseurl/baseurl/g” /etc/yum.repos.d/CentOS-Base.repo
RUN sed -i “s/mirrorlist=http/#mirrorlist=http/g” /etc/yum.repos.d/CentOS-Base.repo
RUN sed -i “s/mirror.centos.org/vault.centos.org/g” /etc/yum.repos.d/CentOS-Base.repo
#RUN sed -i “s/mirror.centos.org/3.22.185.178/g” /etc/yum.repos.d/CentOS-Base.repo

RUN sed -i “s/#baseurl/baseurl/g” /etc/yum.repos.d/CentOS-Base.repo
RUN sed -i “s/mirrorlist=http/#mirrorlist=http/g” /etc/yum.repos.d/CentOS-Base.repo
RUN sed -i “s/mirror.centos.org/vault.centos.org/g” /etc/yum.repos.d/CentOS-Base.repo
#RUN sed -i “s/mirror.centos.org/3.22.185.178/g” /etc/yum.repos.d/CentOS-Base.repo

RUN sed -i “s/=http:/=https:/g” /etc/yum.repos.d/CentOS-Base.repo

tried “/os/i386” buf fails - 3-15-2023

RUN sed -i “s/name=CentOS-$releasever/name=CentOS-6.10/g”
/etc/yum.repos.d/CentOS-Base.repo
RUN sed -i “s#centos/$releasever/os/$basearch#6.10/os/x86_64#g”
/etc/yum.repos.d/CentOS-Base.repo
RUN sed -i “s#centos/$releasever/updates/$basearch#6.10/updates/x86_64#g”
/etc/yum.repos.d/CentOS-Base.repo

RUN sed -i “s#centos/$releasever/extras/$basearch#6.10/extras/x86_64#g”
/etc/yum.repos.d/CentOS-Base.repo

RUN sed -i “s#centos/$releasever/centosplus/$basearch#6.10/centosplus/x86_64#g”
/etc/yum.repos.d/CentOS-Base.repo

RUN sed -i “s#centos/$releasever/contrib/$basearch#6.10/contrib/x86_64#g”
/etc/yum.repos.d/CentOS-Base.repo

#Validate modification
RUN cat /etc/yum.repos.d/CentOS-Base.repo

RUN yum -y update; yum clean all

#to prevent Permission denied
#RUN yum -y install sudo

RUN yum -y install yum-utils

RUN yum --enablerepo=* clean all
RUN yum-config-manager --disable *
RUN yum-config-manager --enable base updates extras
RUN yum -q repolist

#python3 not available in any of the 2 archives
RUN yum -y install openssh-server python3 sudo

3-9-2023 change user from AIRS to tdsbld

from How to use sudo inside a docker container? - Stack Overflow

RUN adduser -m tdsbld &&
echo “MyPass*49?” | passwd tdsbld --stdin &&
usermod -aG wheel tdsbld &&
mkdir /home/tdsbld/.ssh &&
chown tdsbld:tdsbld -R /home/tdsbld/ &&
chmod 700 /home/\tdsbld/.ssh

RUN echo “tdsbld ALL=(ALL) NOPASSWD: ALL” >> /etc/sudoers &&
echo “%wheel ALL=(ALL) ALL” >> /etc/sudoers

RUN echo “PasswordAuthentication yes” >> /etc/ssh/sshd_config

#4-4-2023 - add to get LA time - default is GMT
RUN ln -fs /usr/share/zoneinfo/America/Los_Angeles /etc/localtime

changed 3-13-2023 - Ray Bambery from x86_64 to i686

for list of packges see, https://vault.centos.org/6.10/os/i386/Packages/a

3-16-2023, switch for Index of /centos/6.10/os/x86_64/Packages

when i686 packages dont exist on Index of /centos/6.10/os/i386/Packages

web site

RUN yum -y install imake-1.0.2-11.el6.x86_64
gcc-4.4.7-23.el6.x86_64
gcc-gfortran-4.4.7-23.el6.x86_64 \
gcc-c+±4.4.7-23.el6.x86_64
cpp-4.4.7-23.el6.x86_64
gcc-java-4.4.7-23.el6.x86_64
gdb-7.2-92.el6.x86_64
java-1.8.0-openjdk-1.8.0.171-8.b10.el6_9.x86_64
;yum clean all

RUN yum -y install valgrind-3.8.1-9.el6.i686
libc-client-2007e-11.el6.i686
libc-client-devel-2007e-11.el6.i686
glibc-2.12-1.212.el6.i686
glibc-common-2.12-1.212.el6.i686
glibc-headers-2.12-1.212.el6.i686
glibc-devel-2.12-1.212.el6.i686
glibc-static-2.12-1.212.el6.i686
diffutils-2.8.1-28.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
gnutls-2.12.23-22.el6.i686
gnutls-utils-2.12.23-22.el6.x86_64
gsl-static-1.13-1.el6.x86_64
unzip-6.0-5.el6.x86_64
util-linux-ng-2.17.2-12.28.el6_9.2.i686
zip-3.0-1.el6_7.1.x86_64
iputils-20071127-24.el6.x86_64
zlib-1.2.3-29.el6.i686
libstdc+±4.4.7-23.el6.i686
libjpeg-turbo-1.2.1-3.el6_5.i686
eog-2.28.2-4.el6.x86_64 ; yum clean all

RUN yum -y install ksh-20120801-37.el6_9.x86_64
net-tools-1.60-114.el6.x86_64
iptables-1.4.7-19.el6.i686 ; yum clean all

RUN yum -y install 2:vim-enhanced-7.4.629-5.el6_8.1.x86_64
libXpm-3.5.10-2.el6.i686
libXpm-devel-3.5.10-2.el6.i686
libXp-1.0.2-2.1.el6.i686
libXp-devel-1.0.2-2.1.el6.i686
libXmu-1.1.1-2.el6.i686
libXmu-devel-1.1.1-2.el6.i686; yum clean all

#4-15-2023 - for matlab
RUN yum -y install redhat-lsb ; yum clean all

3-9-2023 probably not necessary

RUN yum -y install git ; yum clean all

#mkdir -p Ok, no error if existing
RUN mkdir -p /logs; mkdir -p /opt; mkdir -p /raid0; mkdir -p /raid0/ref; mkdir -p /raid0/ref/tdscm; mkdir -p /raid0/ref/tdscm/buildlogs
RUN mkdir -p /ref
#RUN ln -s /home/AIRS /ref/devstable

Directories

WORKDIR /home/tdsbld
RUN mkdir -p /home/tdsbld/jenkins; mkdir -p /home/tdsbld/jenkins/workspace; mkdir -p /home/tdsbld/jenkins/workspace/AIRS

RUN mkdir -p opt;

USER tdsbld

#RUN ls /opt/packages
ENV GIT_SSH_COMMAND=“ssh -i /home/tdsbld/.ssh/id_rsa.sps”

RUN ls -laFR /home/tdsbld

#RUN echo “source /root/.env.sh” >> /root/.bashrc

#COPY ./DEVELOPMENT/jenkins/load_packages.sh .
#COPY ./DEVELOPMENT/jenkins/load_lib.sh .
#RUN ./load_packages.sh
#RUN ./load_lib.sh

#added 4-4-2023
EXPOSE 22

ARG user_pass
RUN echo $user_pass | sudo -S /etc/init.d/sshd start